@Internal public static final class IAlias.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IAlias.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIAlias.Jsii$Default, IAlias.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Alias |
addAlias(String alias)
Defines a new alias for the key.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the KMS key resource policy.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement,
Boolean allowNoOp)
Adds a statement to the KMS key resource policy.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
String |
getAliasName()
The name of the alias.
|
IKey |
getAliasTargetKey()
The Key to which the Alias refers.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
String |
getKeyArn()
The ARN of the key.
|
String |
getKeyId()
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()
The stack in which this resource is defined.
|
Grant |
grant(IGrantable grantee,
String... actions)
Grant the indicated permissions on this key to the given principal.
|
Grant |
grantDecrypt(IGrantable grantee)
Grant decryption permissions using this key to the given principal.
|
Grant |
grantEncrypt(IGrantable grantee)
Grant encryption permissions using this key to the given principal.
|
Grant |
grantEncryptDecrypt(IGrantable grantee)
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 IAlias.Jsii$DefaultgetNode in interface IKey.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @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 IAlias.Jsii$DefaultgetEnv in interface IKey.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IAlias.Jsii$DefaultgetStack in interface IKey.Jsii$Default@Stability(value=Stable) @NotNull public final String getKeyArn()
getKeyArn in interface IAlias.Jsii$DefaultgetKeyArn in interface IKeygetKeyArn in interface IKey.Jsii$Default@Stability(value=Stable) @NotNull public final String getKeyId()
getKeyId in interface IAlias.Jsii$DefaultgetKeyId in interface IKeygetKeyId in interface IKey.Jsii$Default@Stability(value=Stable) @NotNull public final String getAliasName()
getAliasName in interface IAliasgetAliasName in interface IAlias.Jsii$Default@Stability(value=Stable) @NotNull public final IKey getAliasTargetKey()
getAliasTargetKey in interface IAliasgetAliasTargetKey in interface IAlias.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IAlias.Jsii$DefaultapplyRemovalPolicy in interface IKey.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final Alias addAlias(@NotNull String alias)
addAlias in interface IAlias.Jsii$DefaultaddAlias in interface IKeyaddAlias in interface IKey.Jsii$Defaultalias - This parameter is required.@Stability(value=Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement, @Nullable Boolean allowNoOp)
addToResourcePolicy in interface IAlias.Jsii$DefaultaddToResourcePolicy 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=Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IKeystatement - The policy statement to add. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IAlias.Jsii$Defaultgrant in interface IKeygrant in interface IKey.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantDecrypt(@NotNull IGrantable grantee)
grantDecrypt in interface IAlias.Jsii$DefaultgrantDecrypt in interface IKeygrantDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantEncrypt(@NotNull IGrantable grantee)
grantEncrypt in interface IAlias.Jsii$DefaultgrantEncrypt in interface IKeygrantEncrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantEncryptDecrypt(@NotNull IGrantable grantee)
grantEncryptDecrypt in interface IAlias.Jsii$DefaultgrantEncryptDecrypt in interface IKeygrantEncryptDecrypt in interface IKey.Jsii$Defaultgrantee - This parameter is required.Copyright © 2022. All rights reserved.