SecretState constructor

const SecretState({
  1. Input<String?>? arn,
  2. Input<String?>? description,
  3. Input<bool?>? forceOverwriteReplicaSecret,
  4. Input<String?>? kmsKeyId,
  5. Input<String?>? name,
  6. Input<String?>? namePrefix,
  7. Input<String?>? policy,
  8. Input<int?>? recoveryWindowInDays,
  9. Input<String?>? region,
  10. Input<List<SecretReplica>?>? replicas,
  11. Input<Map<String, String>?>? tags,
  12. Input<Map<String, String>?>? tagsAll,
  13. Input<String?>? type,
})

Creates a new SecretState. arn ARN of the secret. description Description of the secret. forceOverwriteReplicaSecret Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region. kmsKeyId ARN or Id of the AWS KMS key to be used to encrypt the secret values in the versions stored in this secret. If you need to reference a CMK in a different account, you can use only the key ARN. If you don't specify this value, then Secrets Manager defaults to using the AWS account's default KMS key (the one named aws/secretsmanager). If the default KMS key with that name doesn't yet exist, then AWS Secrets Manager creates it for you automatically the first time. name Friendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters: /_+=.@- Conflicts with namePrefix. namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name. policy Valid JSON document representing a resource policy. Removing policy from your configuration or setting policy to null or an empty string (i.e., policy = "") will not delete the policy since it could have been set by aws.secretsmanager.SecretPolicy. To delete the policy, set it to "{}" (an empty JSON document). recoveryWindowInDays Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days. The default value is 30. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. replicas Configuration block to support secret replication. See details below. tags Key-value map of user-defined tags that are attached to the secret. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. type Type of secret for managed external secrets. Valid values are SalesforceClientSecret, BigIDClientSecret, and SnowflakeKeyPairAuthentication. For more information about supported partners and their specific requirements, see Managed external secret partners. This attribute cannot be changed after creation.

Implementation

const SecretState({
  this.arn,
  this.description,
  this.forceOverwriteReplicaSecret,
  this.kmsKeyId,
  this.name,
  this.namePrefix,
  this.policy,
  this.recoveryWindowInDays,
  this.region,
  this.replicas,
  this.tags,
  this.tagsAll,
  this.type,
});