@Internal public static final class IKey.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IKey.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIKey.Jsii$Default, IKey.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Alias |
addAlias(String alias)
(experimental) Defines a new alias for the key.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Adds a statement to the KMS key resource policy.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement,
Boolean allowNoOp)
(experimental) Adds a statement to the KMS key resource policy.
|
ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
String |
getKeyArn()
(experimental) The ARN of the key.
|
String |
getKeyId()
(experimental) The ID of the key (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab).
|
software.constructs.Node |
getNode()
The tree node.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the indicated permissions on this key to the given principal.
|
Grant |
grantDecrypt(IGrantable grantee)
(experimental) Grant decryption permissions using this key to the given principal.
|
Grant |
grantEncrypt(IGrantable grantee)
(experimental) Grant encryption permissions using this key to the given principal.
|
Grant |
grantEncryptDecrypt(IGrantable grantee)
(experimental) Grant encryption and decryption permissions using this key to the given principal.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IKey.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Experimental) @NotNull public final 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$DefaultgetEnv in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull public final String getKeyArn()
getKeyArn in interface IKeygetKeyArn in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull public final String getKeyId()
getKeyId in interface IKeygetKeyId in interface IKey.Jsii$Default@Stability(value=Experimental) @NotNull public final Alias addAlias(@NotNull String alias)
addAlias in interface IKeyaddAlias in interface IKey.Jsii$Defaultalias - This parameter is required.@Stability(value=Experimental) @NotNull public final 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 public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IKeystatement - The policy statement to add. This parameter is required.@Stability(value=Experimental) @NotNull public final 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 public final Grant grantDecrypt(@NotNull IGrantable grantee)
grantDecrypt in interface IKeygrantDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public final Grant grantEncrypt(@NotNull IGrantable grantee)
grantEncrypt in interface IKeygrantEncrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public final Grant grantEncryptDecrypt(@NotNull IGrantable grantee)
grantEncryptDecrypt in interface IKeygrantEncryptDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.Copyright © 2021. All rights reserved.