| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
KeyProps.Builder |
alias(String alias)
Sets the value of
KeyProps.getAlias() |
KeyProps |
build()
Builds the configured instance.
|
KeyProps.Builder |
description(String description)
Sets the value of
KeyProps.getDescription() |
KeyProps.Builder |
enabled(Boolean enabled)
Sets the value of
KeyProps.getEnabled() |
KeyProps.Builder |
enableKeyRotation(Boolean enableKeyRotation)
Sets the value of
KeyProps.getEnableKeyRotation() |
KeyProps.Builder |
policy(PolicyDocument policy)
Sets the value of
KeyProps.getPolicy() |
KeyProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
KeyProps.getRemovalPolicy() |
KeyProps.Builder |
trustAccountIdentities(Boolean trustAccountIdentities)
Sets the value of
KeyProps.getTrustAccountIdentities() |
@Stability(value=Experimental) public KeyProps.Builder alias(String alias)
KeyProps.getAlias()alias - Initial alias to add to the key.
More aliases can be added later by calling addAlias.this@Stability(value=Experimental) public KeyProps.Builder description(String description)
KeyProps.getDescription()description - A description of the key.
Use a description that helps your users decide
whether the key is appropriate for a particular task.this@Stability(value=Experimental) public KeyProps.Builder enabled(Boolean enabled)
KeyProps.getEnabled()enabled - Indicates whether the key is available for use.this@Stability(value=Experimental) public KeyProps.Builder enableKeyRotation(Boolean enableKeyRotation)
KeyProps.getEnableKeyRotation()enableKeyRotation - Indicates whether AWS KMS rotates the key.this@Stability(value=Experimental) public KeyProps.Builder policy(PolicyDocument policy)
KeyProps.getPolicy()policy - Custom policy document to attach to the KMS key.this@Stability(value=Experimental) public KeyProps.Builder removalPolicy(RemovalPolicy removalPolicy)
KeyProps.getRemovalPolicy()removalPolicy - Whether the encryption key should be retained when it is removed from the Stack.
This is useful when one wants to
retain access to data that was encrypted with a key that is being retired.this@Stability(value=Experimental) public KeyProps.Builder trustAccountIdentities(Boolean trustAccountIdentities)
KeyProps.getTrustAccountIdentities()trustAccountIdentities - Whether the key usage can be granted by IAM policies.
Setting this to true adds a default statement which delegates key
access control completely to the identity's IAM policy (similar
to how it works for other AWS resources).this@Stability(value=Experimental) public KeyProps build()
build in interface software.amazon.jsii.Builder<KeyProps>KeyPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.