@Internal public static final class IVolume.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IVolume.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIVolume.Jsii$Default, IVolume.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
String |
getAvailabilityZone()
The availability zone that the EBS Volume is contained within (ex: us-west-2a).
|
IKey |
getEncryptionKey()
The customer-managed encryption key that is used to encrypt the Volume.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
software.constructs.Node |
getNode()
The tree node.
|
Stack |
getStack()
The stack in which this resource is defined.
|
String |
getVolumeId()
The EBS Volume's ID.
|
Grant |
grantAttachVolume(IGrantable grantee)
Grants permission to attach this Volume to an instance.
|
Grant |
grantAttachVolume(IGrantable grantee,
List<IInstance> instances)
Grants permission to attach this Volume to an instance.
|
Grant |
grantAttachVolumeByResourceTag(IGrantable grantee,
List<software.constructs.Construct> constructs)
Grants permission to attach the Volume by a ResourceTag condition.
|
Grant |
grantAttachVolumeByResourceTag(IGrantable grantee,
List<software.constructs.Construct> constructs,
String tagKeySuffix)
Grants permission to attach the Volume by a ResourceTag condition.
|
Grant |
grantDetachVolume(IGrantable grantee)
Grants permission to detach this Volume from an instance CAUTION: Granting an instance permission to detach from itself using this method will lead to an unresolvable circular reference between the instance role and the instance.
|
Grant |
grantDetachVolume(IGrantable grantee,
List<IInstance> instances)
Grants permission to detach this Volume from an instance CAUTION: Granting an instance permission to detach from itself using this method will lead to an unresolvable circular reference between the instance role and the instance.
|
Grant |
grantDetachVolumeByResourceTag(IGrantable grantee,
List<software.constructs.Construct> constructs)
Grants permission to detach the Volume by a ResourceTag condition.
|
Grant |
grantDetachVolumeByResourceTag(IGrantable grantee,
List<software.constructs.Construct> constructs,
String tagKeySuffix)
Grants permission to detach the Volume by a ResourceTag condition.
|
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 IVolume.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 IVolume.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IVolume.Jsii$Default@Stability(value=Stable) @NotNull public final String getAvailabilityZone()
getAvailabilityZone in interface IVolumegetAvailabilityZone in interface IVolume.Jsii$Default@Stability(value=Stable) @NotNull public final String getVolumeId()
getVolumeId in interface IVolumegetVolumeId in interface IVolume.Jsii$Default@Stability(value=Stable) @Nullable public final IKey getEncryptionKey()
getEncryptionKey in interface IVolumegetEncryptionKey in interface IVolume.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 IVolume.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantAttachVolume(@NotNull IGrantable grantee, @Nullable List<IInstance> instances)
CAUTION: Granting an instance permission to attach to itself using this method will lead to an unresolvable circular reference between the instance role and the instance. Use {@link IVolume.grantAttachVolumeToSelf} to grant an instance permission to attach this volume to itself.
grantAttachVolume in interface IVolumegrantAttachVolume in interface IVolume.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.instances - the instances to which permission is being granted to attach this volume to.@Stability(value=Stable) @NotNull public final Grant grantAttachVolume(@NotNull IGrantable grantee)
CAUTION: Granting an instance permission to attach to itself using this method will lead to an unresolvable circular reference between the instance role and the instance. Use {@link IVolume.grantAttachVolumeToSelf} to grant an instance permission to attach this volume to itself.
grantAttachVolume in interface IVolumegrantee - the principal being granted permission. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantAttachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs, @Nullable String tagKeySuffix)
If you are looking to grant an Instance, AutoScalingGroup, EC2-Fleet, SpotFleet, ECS host, etc the ability to attach this volume to itself then this is the method you want to use.
This is implemented by adding a Tag with key VolumeGrantAttach-<suffix> to the given
constructs and this Volume, and then conditioning the Grant such that the grantee is only
given the ability to AttachVolume if both the Volume and the destination Instance have that
tag applied to them.
grantAttachVolumeByResourceTag in interface IVolumegrantAttachVolumeByResourceTag in interface IVolume.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.constructs - The list of constructs that will have the generated resource tag applied to them. This parameter is required.tagKeySuffix - A suffix to use on the generated Tag key in place of the generated hash value.@Stability(value=Stable) @NotNull public final Grant grantAttachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs)
If you are looking to grant an Instance, AutoScalingGroup, EC2-Fleet, SpotFleet, ECS host, etc the ability to attach this volume to itself then this is the method you want to use.
This is implemented by adding a Tag with key VolumeGrantAttach-<suffix> to the given
constructs and this Volume, and then conditioning the Grant such that the grantee is only
given the ability to AttachVolume if both the Volume and the destination Instance have that
tag applied to them.
grantAttachVolumeByResourceTag in interface IVolumegrantee - the principal being granted permission. This parameter is required.constructs - The list of constructs that will have the generated resource tag applied to them. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantDetachVolume(@NotNull IGrantable grantee, @Nullable List<IInstance> instances)
Use {@link IVolume.grantDetachVolumeFromSelf} to grant an instance permission to detach this volume from itself.
grantDetachVolume in interface IVolumegrantDetachVolume in interface IVolume.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.instances - the instances to which permission is being granted to detach this volume from.@Stability(value=Stable) @NotNull public final Grant grantDetachVolume(@NotNull IGrantable grantee)
Use {@link IVolume.grantDetachVolumeFromSelf} to grant an instance permission to detach this volume from itself.
grantDetachVolume in interface IVolumegrantee - the principal being granted permission. This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantDetachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs, @Nullable String tagKeySuffix)
This is implemented via the same mechanism as {@link IVolume.grantAttachVolumeByResourceTag}, and is subject to the same conditions.
grantDetachVolumeByResourceTag in interface IVolumegrantDetachVolumeByResourceTag in interface IVolume.Jsii$Defaultgrantee - the principal being granted permission. This parameter is required.constructs - The list of constructs that will have the generated resource tag applied to them. This parameter is required.tagKeySuffix - A suffix to use on the generated Tag key in place of the generated hash value.@Stability(value=Stable) @NotNull public final Grant grantDetachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs)
This is implemented via the same mechanism as {@link IVolume.grantAttachVolumeByResourceTag}, and is subject to the same conditions.
grantDetachVolumeByResourceTag in interface IVolumegrantee - the principal being granted permission. This parameter is required.constructs - The list of constructs that will have the generated resource tag applied to them. This parameter is required.Copyright © 2022. All rights reserved.