Class IVolume.Jsii$Proxy
- All Implemented Interfaces:
IVolumeRef,IVolumeRef.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IVolume,IVolume.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IVolume
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVolume
IVolume.Jsii$Default, IVolume.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IVolumeRef
IVolumeRef.Jsii$Default, IVolumeRef.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GrantgrantAttachVolume(IGrantable grantee) Grants permission to attach this Volume to an instance.final GrantgrantAttachVolumeByResourceTag(IGrantable grantee, List<software.constructs.Construct> constructs) Grants permission to attach the Volume by a ResourceTag condition.final GrantgrantDetachVolume(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.final GrantgrantDetachVolumeByResourceTag(IGrantable grantee, List<software.constructs.Construct> constructs) Grants permission to detach the Volume by a ResourceTag condition.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.services.ec2.IVolume.Jsii$Default
getAvailabilityZone, getEncryptionKey, getVolumeId, grantAttachVolume, grantAttachVolumeByResourceTag, grantDetachVolume, grantDetachVolumeByResourceTagMethods inherited from interface software.amazon.awscdk.interfaces.ec2.IVolumeRef.Jsii$Default
getVolumeRefMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
grantAttachVolume
Grants permission to attach this Volume to an instance.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
IVolume.grantAttachVolumeToSelfto grant an instance permission to attach this volume to itself.- Specified by:
grantAttachVolumein interfaceIVolume- Specified by:
grantAttachVolumein interfaceIVolume.Jsii$Default- Parameters:
grantee- the principal being granted permission. This parameter is required.
-
grantAttachVolumeByResourceTag
@Stability(Stable) @NotNull public final Grant grantAttachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs) Grants permission to attach the Volume by a ResourceTag condition.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.- Specified by:
grantAttachVolumeByResourceTagin interfaceIVolume- Specified by:
grantAttachVolumeByResourceTagin interfaceIVolume.Jsii$Default- Parameters:
grantee- 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.
-
grantDetachVolume
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.Use
IVolume.grantDetachVolumeFromSelfto grant an instance permission to detach this volume from itself.- Specified by:
grantDetachVolumein interfaceIVolume- Specified by:
grantDetachVolumein interfaceIVolume.Jsii$Default- Parameters:
grantee- the principal being granted permission. This parameter is required.
-
grantDetachVolumeByResourceTag
@Stability(Stable) @NotNull public final Grant grantDetachVolumeByResourceTag(@NotNull IGrantable grantee, @NotNull List<software.constructs.Construct> constructs) Grants permission to detach the Volume by a ResourceTag condition.This is implemented via the same mechanism as
IVolume.grantAttachVolumeByResourceTag, and is subject to the same conditions.- Specified by:
grantDetachVolumeByResourceTagin interfaceIVolume- Specified by:
grantDetachVolumeByResourceTagin interfaceIVolume.Jsii$Default- Parameters:
grantee- 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.
-