Class VolumeAttachmentArgs
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public sealed class VolumeAttachmentArgs : ResourceArgs
Constructors
View SourceVolumeAttachmentArgs()
Declaration
public VolumeAttachmentArgs()
Properties
View SourceDeviceName
The device name to expose to the instance (for
example, /dev/sdh or xvdh). See Device Naming on Linux Instances and Device Naming on Windows Instances for more information.
Declaration
public Input<string> DeviceName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ForceDetach
Set to true if you want to force the
volume to detach. Useful if previous attempts failed, but use this option only
as a last resort, as this can result in data loss. See
Detaching an Amazon EBS Volume from an Instance for more information.
Declaration
public Input<bool> ForceDetach { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
InstanceId
ID of the Instance to attach to
Declaration
public Input<string> InstanceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SkipDestroy
Set this to true if you do not wish to detach the volume from the instance to which it is attached at destroy time, and instead just remove the attachment from this provider state. This is useful when destroying an instance which has volumes created by some other means attached.
Declaration
public Input<bool> SkipDestroy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
VolumeId
ID of the Volume to be attached
Declaration
public Input<string> VolumeId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |