Class VolumeAttachmentState.Builder

  • Enclosing class:
    VolumeAttachmentState

    public static final class VolumeAttachmentState.Builder
    extends java.lang.Object
    • Method Detail

      • deviceName

        public VolumeAttachmentState.Builder deviceName​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> deviceName)
        Parameters:
        deviceName - 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 VolumeAttachmentState.Builder deviceName​(java.lang.String deviceName)
        Parameters:
        deviceName - 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 VolumeAttachmentState.Builder forceDetach​(@Nullable
                                                         com.pulumi.core.Output<java.lang.Boolean> forceDetach)
        Parameters:
        forceDetach - Whether 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 VolumeAttachmentState.Builder forceDetach​(java.lang.Boolean forceDetach)
        Parameters:
        forceDetach - Whether 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 VolumeAttachmentState.Builder instanceId​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> instanceId)
        Parameters:
        instanceId - ID of the Instance to attach to.
        Returns:
        builder
      • instanceId

        public VolumeAttachmentState.Builder instanceId​(java.lang.String instanceId)
        Parameters:
        instanceId - ID of the Instance to attach to.
        Returns:
        builder
      • region

        public VolumeAttachmentState.Builder region​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public VolumeAttachmentState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • skipDestroy

        public VolumeAttachmentState.Builder skipDestroy​(@Nullable
                                                         com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
        Parameters:
        skipDestroy - Whether to skip detaching 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 VolumeAttachmentState.Builder skipDestroy​(java.lang.Boolean skipDestroy)
        Parameters:
        skipDestroy - Whether to skip detaching 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 VolumeAttachmentState.Builder stopInstanceBeforeDetaching​(@Nullable
                                                                         com.pulumi.core.Output<java.lang.Boolean> stopInstanceBeforeDetaching)
        Parameters:
        stopInstanceBeforeDetaching - Whether 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 VolumeAttachmentState.Builder stopInstanceBeforeDetaching​(java.lang.Boolean stopInstanceBeforeDetaching)
        Parameters:
        stopInstanceBeforeDetaching - Whether 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 VolumeAttachmentState.Builder volumeId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> volumeId)
        Parameters:
        volumeId - ID of the Volume to be attached.
        Returns:
        builder
      • volumeId

        public VolumeAttachmentState.Builder volumeId​(java.lang.String volumeId)
        Parameters:
        volumeId - ID of the Volume to be attached.
        Returns:
        builder