Class SecretState
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.secretsmanager.inputs.SecretState
-
public final class SecretState extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecretState.Builder
-
Field Summary
Fields Modifier and Type Field Description static SecretState
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<java.lang.String>>
arn()
static SecretState.Builder
builder()
static SecretState.Builder
builder(SecretState defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
description()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
forceOverwriteReplicaSecret()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
kmsKeyId()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
name()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
namePrefix()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
policy()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
recoveryWindowInDays()
java.util.Optional<com.pulumi.core.Output<java.util.List<SecretReplicaArgs>>>
replicas()
java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>
tags()
java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>
tagsAll()
Deprecated.Please use `tags` instead.
-
-
-
Field Detail
-
Empty
public static final SecretState Empty
-
-
Method Detail
-
arn
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arn()
- Returns:
- ARN of the secret.
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- Description of the secret.
-
forceOverwriteReplicaSecret
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> forceOverwriteReplicaSecret()
- Returns:
- Accepts boolean value to specify whether to overwrite a secret with the same name in the destination Region.
-
kmsKeyId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> kmsKeyId()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- 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 `name_prefix`.
-
namePrefix
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
policy
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> policy()
- Returns:
- Valid JSON document representing a [resource policy](https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html). 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
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> recoveryWindowInDays()
- Returns:
- 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`.
-
replicas
public java.util.Optional<com.pulumi.core.Output<java.util.List<SecretReplicaArgs>>> replicas()
- Returns:
- Configuration block to support secret replication. See details below.
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of user-defined tags that are attached to the secret. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tagsAll()
Deprecated.Please use `tags` instead.- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
builder
public static SecretState.Builder builder()
-
builder
public static SecretState.Builder builder(SecretState defaults)
-
-