Skip to content
v2.274.0

CfnVolumeAttachmentPropsMixin Mixin ​

Attaches an Amazon EBS volume to a running instance and exposes it to the instance with the specified device name.

Before this resource can be deleted (and therefore the volume detached), you must first unmount the volume in the instance. Failure to do so results in the volume being stuck in the busy state while it is trying to detach, which could possibly damage the file system or the data it contains.

If an Amazon EBS volume is the root device of an instance, it cannot be detached while the instance is in the "running" state. To detach the root volume, stop the instance first.

If the root volume is detached from an instance with an AWS Marketplace product code, then the product codes from that volume are no longer associated with the instance.

Initializer ​

ts
new CfnVolumeAttachmentPropsMixin(props: CfnVolumeAttachmentMixinProps, options?: CfnPropertyMixinOptions)
python
CfnVolumeAttachmentPropsMixin(props: CfnVolumeAttachmentMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnVolumeAttachmentPropsMixin(CfnVolumeAttachmentMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnVolumeAttachmentPropsMixin(CfnVolumeAttachmentMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnVolumeAttachmentPropsMixin(Props CfnVolumeAttachmentMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.