software.amazon.jsii.JsiiObject.InitializationModeKeyProps.Builder, KeyProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String alias,
String description,
Boolean enabled,
Boolean enableKeyRotation,
PolicyDocument policy,
RemovalPolicy removalPolicy,
Boolean trustAccountIdentities)
Constructor that initializes the object based on literal property values passed by the
KeyProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAlias()
(experimental) Initial alias to add to the key.
|
String |
getDescription()
(experimental) A description of the key.
|
Boolean |
getEnabled()
(experimental) Indicates whether the key is available for use.
|
Boolean |
getEnableKeyRotation()
(experimental) Indicates whether AWS KMS rotates the key.
|
PolicyDocument |
getPolicy()
(experimental) Custom policy document to attach to the KMS key.
|
RemovalPolicy |
getRemovalPolicy()
(experimental) Whether the encryption key should be retained when it is removed from the Stack.
|
Boolean |
getTrustAccountIdentities()
(experimental) Whether the key usage can be granted by IAM policies.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String alias, String description, Boolean enabled, Boolean enableKeyRotation, PolicyDocument policy, RemovalPolicy removalPolicy, Boolean trustAccountIdentities)
KeyProps.Builder.public final String getAlias()
KeyProps
More aliases can be added later by calling addAlias.
Default: - No alias is added for the key.
public final String getDescription()
KeyPropsUse a description that helps your users decide whether the key is appropriate for a particular task.
Default: - No description.
getDescription in interface KeyPropspublic final Boolean getEnabled()
KeyPropsDefault: - Key is enabled.
getEnabled in interface KeyPropspublic final Boolean getEnableKeyRotation()
KeyPropsDefault: false
getEnableKeyRotation in interface KeyPropspublic final PolicyDocument getPolicy()
KeyPropsDefault: - A policy document with permissions for the account root to administer the key will be created.
public final RemovalPolicy getRemovalPolicy()
KeyPropsThis is useful when one wants to retain access to data that was encrypted with a key that is being retired.
Default: RemovalPolicy.Retain
getRemovalPolicy in interface KeyPropspublic final Boolean getTrustAccountIdentities()
KeyPropsSetting 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
getTrustAccountIdentities in interface KeyPropshttps://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.