SecretState class
Input properties used for looking up and filtering Secret resources.
Constructors
-
SecretState({Input<
String?> ? arn, Input<String?> ? description, Input<bool?> ? forceOverwriteReplicaSecret, Input<String?> ? kmsKeyId, Input<String?> ? name, Input<String?> ? namePrefix, Input<String?> ? policy, Input<int?> ? recoveryWindowInDays, Input<String?> ? region, Input<List< ? replicas, Input<SecretReplica> ?>Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>String?> ? type}) -
Creates a new SecretState.
arnARN of the secret.descriptionDescription of the secret.forceOverwriteReplicaSecretAccepts boolean value to specify whether to overwrite a secret with the same name in the destination Region.kmsKeyIdARN 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 namedaws/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.nameFriendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters:/_+=.@-Conflicts withnamePrefix.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname.policyValid JSON document representing a resource policy. Removingpolicyfrom your configuration or settingpolicyto null or an empty string (i.e.,policy = "") will not delete the policy since it could have been set byaws.secretsmanager.SecretPolicy. To delete thepolicy, set it to"{}"(an empty JSON document).recoveryWindowInDaysNumber of days that AWS Secrets Manager waits before it can delete the secret. This value can be0to force deletion without recovery or range from7to30days. The default value is30.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.replicasConfiguration block to support secret replication. See details below.tagsKey-value map of user-defined tags that are attached to the secret. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllMap of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.typeType of secret for managed external secrets. Valid values areSalesforceClientSecret,BigIDClientSecret, andSnowflakeKeyPairAuthentication. For more information about supported partners and their specific requirements, see Managed external secret partners. This attribute cannot be changed after creation.const -
SecretState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
ARN of the secret.
final
-
description
→ Input<
String?> ? -
Description of the secret.
final
-
forceOverwriteReplicaSecret
→ Input<
bool?> ? -
Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
kmsKeyId
→ Input<
String?> ? -
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.final -
name
→ Input<
String?> ? -
Friendly name of the new secret. The secret name can consist of uppercase letters, lowercase letters, digits, and any of the following characters:
/_+=.@-Conflicts withnamePrefix.final -
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix. Conflicts with
name.final -
policy
→ Input<
String?> ? -
Valid JSON document representing a resource policy. Removing
policyfrom your configuration or settingpolicyto null or an empty string (i.e.,policy = "") will not delete the policy since it could have been set byaws.secretsmanager.SecretPolicy. To delete thepolicy, set it to"{}"(an empty JSON document).final -
recoveryWindowInDays
→ Input<
int?> ? -
Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be
0to force deletion without recovery or range from7to30days. The default value is30.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
replicas
→ Input<
List< ?SecretReplica> ?> -
Configuration block to support secret replication. See details below.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Key-value map of user-defined tags that are attached to the secret. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
type
→ Input<
String?> ? -
Type of secret for managed external secrets. Valid values are
SalesforceClientSecret,BigIDClientSecret, andSnowflakeKeyPairAuthentication. For more information about supported partners and their specific requirements, see Managed external secret partners. This attribute cannot be changed after creation.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited