Interface IKey.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IKey,IKeyRef,IKeyRef.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAlias.Jsii$Default
- All Known Implementing Classes:
IAlias.Jsii$Proxy,IKey.Jsii$Proxy
- Enclosing interface:
IKey
@Internal
public static interface IKey.Jsii$Default
extends IKey, IResource.Jsii$Default, IKeyRef.Jsii$Default
Internal default implementation for
IKey.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.kms.IKey
IKey.Jsii$Default, IKey.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.kms.IKeyRef
IKeyRef.Jsii$Default, IKeyRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault AliasDefines a new alias for the key.default AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.default AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.default StringThe ARN of the key.default StringgetKeyId()The ID of the key (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab).default Grantgrant(IGrantable grantee, String... actions) Grant the indicated permissions on this key to the given principal.default GrantgrantDecrypt(IGrantable grantee) Grant decryption permissions using this key to the given principal.default GrantgrantEncrypt(IGrantable grantee) Grant encryption permissions using this key to the given principal.default GrantgrantEncryptDecrypt(IGrantable grantee) Grant encryption and decryption permissions using this key to the given principal.default GrantgrantGenerateMac(IGrantable grantee) Grant permissions to generating MACs to the given principal.default GrantgrantSign(IGrantable grantee) Grant sign permissions using this key to the given principal.default GrantgrantSignVerify(IGrantable grantee) Grant sign and verify permissions using this key to the given principal.default GrantgrantVerify(IGrantable grantee) Grant verify permissions using this key to the given principal.default GrantgrantVerifyMac(IGrantable grantee) Grant permissions to verifying MACs to the given principal.Methods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.interfaces.kms.IKeyRef.Jsii$Default
getKeyRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKeyArn
The ARN of the key. -
getKeyId
The ID of the key (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab). -
addAlias
Defines a new alias for the key. -
addToResourcePolicy
@Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement, @Nullable Boolean allowNoOp) Adds a statement to the KMS key resource policy.- Specified by:
addToResourcePolicyin interfaceIKey- Parameters:
statement- The policy statement to add. This parameter is required.allowNoOp- If this is set tofalseand there is no policy defined (i.e. external key), the operation will fail. Otherwise, it will no-op.
-
addToResourcePolicy
@Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the KMS key resource policy.- Specified by:
addToResourcePolicyin interfaceIKey- Parameters:
statement- The policy statement to add. This parameter is required.
-
grant
@Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grant the indicated permissions on this key to the given principal. -
grantDecrypt
Grant decryption permissions using this key to the given principal.- Specified by:
grantDecryptin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantEncrypt
Grant encryption permissions using this key to the given principal.- Specified by:
grantEncryptin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantEncryptDecrypt
Grant encryption and decryption permissions using this key to the given principal.- Specified by:
grantEncryptDecryptin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantGenerateMac
Grant permissions to generating MACs to the given principal.- Specified by:
grantGenerateMacin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantSign
Grant sign permissions using this key to the given principal. -
grantSignVerify
Grant sign and verify permissions using this key to the given principal.- Specified by:
grantSignVerifyin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantVerify
Grant verify permissions using this key to the given principal.- Specified by:
grantVerifyin interfaceIKey- Parameters:
grantee- This parameter is required.
-
grantVerifyMac
Grant permissions to verifying MACs to the given principal.- Specified by:
grantVerifyMacin interfaceIKey- Parameters:
grantee- This parameter is required.
-