Class VolumeAttachmentArgs.Builder

  • Enclosing class:
    VolumeAttachmentArgs

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

      • deviceName

        public VolumeAttachmentArgs.Builder deviceName​(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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 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
      • region

        public VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 VolumeAttachmentArgs.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 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