@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:38.129Z") @Stability(value=Experimental) public interface KeyProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
KeyProps.Builder
A builder for
KeyProps |
static class |
KeyProps.Jsii$Proxy
An implementation for
KeyProps |
| Modifier and Type | Method and Description |
|---|---|
static KeyProps.Builder |
builder() |
default String |
getAlias()
(experimental) Initial alias to add to the key.
|
default String |
getDescription()
(experimental) A description of the key.
|
default Boolean |
getEnabled()
(experimental) Indicates whether the key is available for use.
|
default Boolean |
getEnableKeyRotation()
(experimental) Indicates whether AWS KMS rotates the key.
|
default PolicyDocument |
getPolicy()
(experimental) Custom policy document to attach to the KMS key.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) Whether the encryption key should be retained when it is removed from the Stack.
|
default Boolean |
getTrustAccountIdentities()
(experimental) Whether the key usage can be granted by IAM policies.
|
@Stability(value=Experimental) @Nullable default String getAlias()
More aliases can be added later by calling addAlias.
Default: - No alias is added for the key.
@Stability(value=Experimental) @Nullable default String getDescription()
Use a description that helps your users decide whether the key is appropriate for a particular task.
Default: - No description.
@Stability(value=Experimental) @Nullable default Boolean getEnabled()
Default: - Key is enabled.
@Stability(value=Experimental) @Nullable default Boolean getEnableKeyRotation()
Default: false
@Stability(value=Experimental) @Nullable default PolicyDocument getPolicy()
Default: - A policy document with permissions for the account root to administer the key will be created.
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
This is useful when one wants to retain access to data that was encrypted with a key that is being retired.
Default: RemovalPolicy.Retain
@Stability(value=Experimental) @Nullable default Boolean getTrustAccountIdentities()
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).
Default: false
https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam@Stability(value=Experimental) static KeyProps.Builder builder()
KeyProps.Builder of KeyPropsCopyright © 2020. All rights reserved.