SecretRotation constructor

SecretRotation(
  1. String name, {
  2. SecretRotationArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new SecretRotation. name The Pulumi resource name. args Arguments used to configure this SecretRotation. The set of arguments for SecretRotation. options Resource options controlling this resource's behavior.

Implementation

SecretRotation(
  String name, {
  SecretRotationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:secretsmanager/secretRotation:SecretRotation',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  externalSecretRotationMetadatas = registerOutput<List<SecretRotationExternalSecretRotationMetadata>?>('externalSecretRotationMetadatas', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<SecretRotationExternalSecretRotationMetadata>(guardedValue, (value) => SecretRotationExternalSecretRotationMetadata.fromMap((value as Map).cast<String, dynamic>())); });
  externalSecretRotationRoleArn = registerOutput<String?>('externalSecretRotationRoleArn');
  region = registerOutput<String>('region');
  rotateImmediately = registerOutput<bool?>('rotateImmediately');
  rotationEnabled = registerOutput<bool>('rotationEnabled');
  rotationLambdaArn = registerOutput<String?>('rotationLambdaArn');
  rotationRules = registerOutput<SecretRotationRotationRules?>('rotationRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SecretRotationRotationRules.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  secretId = registerOutput<String>('secretId');
}