@Internal public static interface IAlias.Jsii$Default extends IAlias, IKey.Jsii$Default
IAlias.IAlias.Jsii$Default, IAlias.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 String |
getAliasName()
(experimental) The name of the alias.
|
default IKey |
getAliasTargetKey()
(experimental) The Key to which the Alias refers.
|
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 IKey.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 IKey.Jsii$DefaultgetEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IKey.Jsii$DefaultgetStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default String getKeyArn()
getKeyArn in interface IKeygetKeyArn in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull default String getKeyId()
getKeyId in interface IKeygetKeyId in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull default String getAliasName()
getAliasName in interface IAlias@Stability(value=Experimental) @NotNull default IKey getAliasTargetKey()
getAliasTargetKey in interface IAlias@Stability(value=Experimental) @NotNull default Alias addAlias(@NotNull String alias)
addAlias in interface IKeyaddAlias in interface IKey.Jsii$Defaultalias - This parameter is required.@Stability(value=Experimental) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement, @Nullable Boolean allowNoOp)
addToResourcePolicy in interface IKeyaddToResourcePolicy in interface IKey.Jsii$Defaultstatement - 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)
grant in interface IKeygrant in interface IKey.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantDecrypt(@NotNull IGrantable grantee)
grantDecrypt in interface IKeygrantDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantEncrypt(@NotNull IGrantable grantee)
grantEncrypt in interface IKeygrantEncrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantEncryptDecrypt(@NotNull IGrantable grantee)
grantEncryptDecrypt in interface IKeygrantEncryptDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.Copyright © 2021. All rights reserved.