Package com.pulumi.aws.ec2
Class VolumeAttachmentArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.VolumeAttachmentArgs.Builder
-
- Enclosing class:
- VolumeAttachmentArgs
public static final class VolumeAttachmentArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(VolumeAttachmentArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeAttachmentArgs
build()
VolumeAttachmentArgs.Builder
deviceName(com.pulumi.core.Output<java.lang.String> deviceName)
VolumeAttachmentArgs.Builder
deviceName(java.lang.String deviceName)
VolumeAttachmentArgs.Builder
forceDetach(com.pulumi.core.Output<java.lang.Boolean> forceDetach)
VolumeAttachmentArgs.Builder
forceDetach(java.lang.Boolean forceDetach)
VolumeAttachmentArgs.Builder
instanceId(com.pulumi.core.Output<java.lang.String> instanceId)
VolumeAttachmentArgs.Builder
instanceId(java.lang.String instanceId)
VolumeAttachmentArgs.Builder
skipDestroy(com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
VolumeAttachmentArgs.Builder
skipDestroy(java.lang.Boolean skipDestroy)
VolumeAttachmentArgs.Builder
stopInstanceBeforeDetaching(com.pulumi.core.Output<java.lang.Boolean> stopInstanceBeforeDetaching)
VolumeAttachmentArgs.Builder
stopInstanceBeforeDetaching(java.lang.Boolean stopInstanceBeforeDetaching)
VolumeAttachmentArgs.Builder
volumeId(com.pulumi.core.Output<java.lang.String> volumeId)
VolumeAttachmentArgs.Builder
volumeId(java.lang.String volumeId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VolumeAttachmentArgs defaults)
-
-
Method Detail
-
deviceName
public VolumeAttachmentArgs.Builder deviceName(com.pulumi.core.Output<java.lang.String> deviceName)
- Parameters:
deviceName
- The device name to expose to the instance (for example, `/dev/sdh` or `xvdh`). See [Device Naming on Linux Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html#available-ec2-device-names) and [Device Naming on Windows Instances](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/device_naming.html#available-ec2-device-names) for more information.- Returns:
- builder
-
deviceName
public VolumeAttachmentArgs.Builder deviceName(java.lang.String deviceName)
- Parameters:
deviceName
- The device name to expose to the instance (for example, `/dev/sdh` or `xvdh`). See [Device Naming on Linux Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html#available-ec2-device-names) and [Device Naming on Windows Instances](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/device_naming.html#available-ec2-device-names) for more information.- Returns:
- builder
-
forceDetach
public VolumeAttachmentArgs.Builder forceDetach(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceDetach)
- Parameters:
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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) for more information.- Returns:
- builder
-
forceDetach
public VolumeAttachmentArgs.Builder forceDetach(java.lang.Boolean forceDetach)
- Parameters:
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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) for more information.- Returns:
- builder
-
instanceId
public VolumeAttachmentArgs.Builder instanceId(com.pulumi.core.Output<java.lang.String> instanceId)
- Parameters:
instanceId
- ID of the Instance to attach to- Returns:
- builder
-
instanceId
public VolumeAttachmentArgs.Builder instanceId(java.lang.String instanceId)
- Parameters:
instanceId
- ID of the Instance to attach to- Returns:
- builder
-
skipDestroy
public VolumeAttachmentArgs.Builder skipDestroy(@Nullable com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
- Parameters:
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.- Returns:
- builder
-
skipDestroy
public VolumeAttachmentArgs.Builder skipDestroy(java.lang.Boolean skipDestroy)
- Parameters:
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.- Returns:
- builder
-
stopInstanceBeforeDetaching
public VolumeAttachmentArgs.Builder stopInstanceBeforeDetaching(@Nullable com.pulumi.core.Output<java.lang.Boolean> stopInstanceBeforeDetaching)
- Parameters:
stopInstanceBeforeDetaching
- Set this to true to ensure that the target instance is stopped before trying to detach the volume. Stops the instance, if it is not already stopped.- Returns:
- builder
-
stopInstanceBeforeDetaching
public VolumeAttachmentArgs.Builder stopInstanceBeforeDetaching(java.lang.Boolean stopInstanceBeforeDetaching)
- Parameters:
stopInstanceBeforeDetaching
- Set this to true to ensure that the target instance is stopped before trying to detach the volume. Stops the instance, if it is not already stopped.- Returns:
- builder
-
volumeId
public VolumeAttachmentArgs.Builder volumeId(com.pulumi.core.Output<java.lang.String> volumeId)
- Parameters:
volumeId
- ID of the Volume to be attached- Returns:
- builder
-
volumeId
public VolumeAttachmentArgs.Builder volumeId(java.lang.String volumeId)
- Parameters:
volumeId
- ID of the Volume to be attached- Returns:
- builder
-
build
public VolumeAttachmentArgs build()
-
-