Package com.pulumi.aws.kms.inputs
Class KeyPolicyState.Builder
- java.lang.Object
-
- com.pulumi.aws.kms.inputs.KeyPolicyState.Builder
-
- Enclosing class:
- KeyPolicyState
public static final class KeyPolicyState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(KeyPolicyState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPolicyStatebuild()KeyPolicyState.BuilderbypassPolicyLockoutSafetyCheck(com.pulumi.core.Output<java.lang.Boolean> bypassPolicyLockoutSafetyCheck)KeyPolicyState.BuilderbypassPolicyLockoutSafetyCheck(java.lang.Boolean bypassPolicyLockoutSafetyCheck)KeyPolicyState.BuilderkeyId(com.pulumi.core.Output<java.lang.String> keyId)KeyPolicyState.BuilderkeyId(java.lang.String keyId)KeyPolicyState.Builderpolicy(com.pulumi.core.Output<java.lang.String> policy)KeyPolicyState.Builderpolicy(java.lang.String policy)KeyPolicyState.Builderregion(com.pulumi.core.Output<java.lang.String> region)KeyPolicyState.Builderregion(java.lang.String region)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(KeyPolicyState defaults)
-
-
Method Detail
-
bypassPolicyLockoutSafetyCheck
public KeyPolicyState.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. If this value is set, and the resource is destroyed, a warning will be shown, and the resource will be removed from state. 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_.- Returns:
- builder
-
bypassPolicyLockoutSafetyCheck
public KeyPolicyState.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. If this value is set, and the resource is destroyed, a warning will be shown, and the resource will be removed from state. 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_.- Returns:
- builder
-
keyId
public KeyPolicyState.Builder keyId(@Nullable com.pulumi.core.Output<java.lang.String> keyId)
- Parameters:
keyId- ID of the KMS Key to attach the policy.- Returns:
- builder
-
keyId
public KeyPolicyState.Builder keyId(java.lang.String keyId)
- Parameters:
keyId- ID of the KMS Key to attach the policy.- Returns:
- builder
-
policy
public KeyPolicyState.Builder policy(@Nullable com.pulumi.core.Output<java.lang.String> policy)
- Parameters:
policy- Valid policy JSON document. Although this is a key policy, not an IAM policy, an `aws.iam.getPolicyDocument`, in the form that designates a principal, can be used. For more information about building policy documents, see the AWS IAM Policy Document Guide.- Returns:
- builder
-
policy
public KeyPolicyState.Builder policy(java.lang.String policy)
- Parameters:
policy- Valid policy JSON document. Although this is a key policy, not an IAM policy, an `aws.iam.getPolicyDocument`, in the form that designates a principal, can be used. For more information about building policy documents, see the AWS IAM Policy Document Guide.- Returns:
- builder
-
region
public KeyPolicyState.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. > **NOTE:** All KMS keys must have a key policy. If a key policy is not specified, or this resource is destroyed, AWS gives the KMS key a [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) that gives all principals in the owning account unlimited access to all KMS operations for the key. This default key policy effectively delegates all access control to IAM policies and KMS grants.- Returns:
- builder
-
region
public KeyPolicyState.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. > **NOTE:** All KMS keys must have a key policy. If a key policy is not specified, or this resource is destroyed, AWS gives the KMS key a [default key policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) that gives all principals in the owning account unlimited access to all KMS operations for the key. This default key policy effectively delegates all access control to IAM policies and KMS grants.- Returns:
- builder
-
build
public KeyPolicyState build()
-
-