Package com.pulumi.aws.kms
Class ReplicaKeyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.kms.ReplicaKeyArgs.Builder
-
- Enclosing class:
- ReplicaKeyArgs
public static final class ReplicaKeyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ReplicaKeyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicaKeyArgsbuild()ReplicaKeyArgs.BuilderbypassPolicyLockoutSafetyCheck(com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutSafetyCheck)ReplicaKeyArgs.BuilderbypassPolicyLockoutSafetyCheck(java.lang.Boolean bypassPolicyLockoutSafetyCheck)ReplicaKeyArgs.BuilderdeletionWindowInDays(com.pulumi.core.Output<java.lang.Integer> deletionWindowInDays)ReplicaKeyArgs.BuilderdeletionWindowInDays(java.lang.Integer deletionWindowInDays)ReplicaKeyArgs.Builderdescription(com.pulumi.core.Output<java.lang.String> description)ReplicaKeyArgs.Builderdescription(java.lang.String description)ReplicaKeyArgs.Builderenabled(com.pulumi.core.Output<java.lang.Boolean> enabled)ReplicaKeyArgs.Builderenabled(java.lang.Boolean enabled)ReplicaKeyArgs.Builderpolicy(com.pulumi.core.Output<java.lang.String> policy)ReplicaKeyArgs.Builderpolicy(java.lang.String policy)ReplicaKeyArgs.BuilderprimaryKeyArn(com.pulumi.core.Output<java.lang.String> primaryKeyArn)ReplicaKeyArgs.BuilderprimaryKeyArn(java.lang.String primaryKeyArn)ReplicaKeyArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)ReplicaKeyArgs.Builderregion(java.lang.String region)ReplicaKeyArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)ReplicaKeyArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ReplicaKeyArgs defaults)
-
-
Method Detail
-
bypassPolicyLockoutSafetyCheck
public ReplicaKeyArgs.Builder bypassPolicyLockoutSafetyCheck(@Nullable com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutSafetyCheck)
- Parameters:
bypassPolicyLockoutSafetyCheck- Whether to bypass the key policy lockout safety check. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS KMS Developer Guide_. The default value is `false`.- Returns:
- builder
-
bypassPolicyLockoutSafetyCheck
public ReplicaKeyArgs.Builder bypassPolicyLockoutSafetyCheck(java.lang.Boolean bypassPolicyLockoutSafetyCheck)
- Parameters:
bypassPolicyLockoutSafetyCheck- Whether to bypass the key policy lockout safety check. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS KMS Developer Guide_. The default value is `false`.- Returns:
- builder
-
deletionWindowInDays
public ReplicaKeyArgs.Builder deletionWindowInDays(@Nullable com.pulumi.core.Output<java.lang.Integer> deletionWindowInDays)
- Parameters:
deletionWindowInDays- Waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`.- Returns:
- builder
-
deletionWindowInDays
public ReplicaKeyArgs.Builder deletionWindowInDays(java.lang.Integer deletionWindowInDays)
- Parameters:
deletionWindowInDays- Waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`.- Returns:
- builder
-
description
public ReplicaKeyArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Description of the KMS key.- Returns:
- builder
-
description
public ReplicaKeyArgs.Builder description(java.lang.String description)
- Parameters:
description- Description of the KMS key.- Returns:
- builder
-
enabled
public ReplicaKeyArgs.Builder enabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> enabled)
- Parameters:
enabled- Whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`.- Returns:
- builder
-
enabled
public ReplicaKeyArgs.Builder enabled(java.lang.Boolean enabled)
- Parameters:
enabled- Whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`.- Returns:
- builder
-
policy
public ReplicaKeyArgs.Builder policy(@Nullable com.pulumi.core.Output<java.lang.String> policy)
- Parameters:
policy- Key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) to the KMS key.- Returns:
- builder
-
policy
public ReplicaKeyArgs.Builder policy(java.lang.String policy)
- Parameters:
policy- Key policy to attach to the KMS key. If you do not specify a key policy, AWS KMS attaches the [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) to the KMS key.- Returns:
- builder
-
primaryKeyArn
public ReplicaKeyArgs.Builder primaryKeyArn(com.pulumi.core.Output<java.lang.String> primaryKeyArn)
- Parameters:
primaryKeyArn- ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region.- Returns:
- builder
-
primaryKeyArn
public ReplicaKeyArgs.Builder primaryKeyArn(java.lang.String primaryKeyArn)
- Parameters:
primaryKeyArn- ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region.- Returns:
- builder
-
region
public ReplicaKeyArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public ReplicaKeyArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
tags
public ReplicaKeyArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public ReplicaKeyArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
build
public ReplicaKeyArgs build()
-
-