@Internal public static interface IKey.Jsii$Default extends IKey, IResource.Jsii$Default
IKey.IKey.Jsii$Default, IKey.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default Alias |
addAlias(String alias)
(experimental) Defines a new alias for the key.
|
default AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement,
Boolean allowNoOp)
(experimental) Adds a statement to the KMS key resource policy.
|
default ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
default String |
getKeyArn()
(experimental) The ARN of the key.
|
default String |
getKeyId()
(experimental) The ID of the key (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab).
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the indicated permissions on this key to the given principal.
|
default Grant |
grantDecrypt(IGrantable grantee)
(experimental) Grant decryption permissions using this key to the given principal.
|
default Grant |
grantEncrypt(IGrantable grantee)
(experimental) Grant encryption permissions using this key to the given principal.
|
default Grant |
grantEncryptDecrypt(IGrantable grantee)
(experimental) Grant encryption and decryption permissions using this key to the given principal.
|
addToResourcePolicy@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default String getKeyArn()
@Stability(value=Experimental) @NotNull default String getKeyId()
@Stability(value=Experimental) @NotNull default Alias addAlias(@NotNull String alias)
@Stability(value=Experimental) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement, @Nullable Boolean allowNoOp)
addToResourcePolicy in interface IKeystatement - The policy statement to add. This parameter is required.allowNoOp - If this is set to `false` and there is no policy defined (i.e. external key), the operation will fail. Otherwise, it will no-op.@Stability(value=Experimental) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
@Stability(value=Experimental) @NotNull default Grant grantDecrypt(@NotNull IGrantable grantee)
grantDecrypt in interface IKeygrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantEncrypt(@NotNull IGrantable grantee)
grantEncrypt in interface IKeygrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantEncryptDecrypt(@NotNull IGrantable grantee)
grantEncryptDecrypt in interface IKeygrantee - This parameter is required.Copyright © 2021. All rights reserved.