Class VolumeAttachmentArgs


  • public final class VolumeAttachmentArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • deviceName

        public com.pulumi.core.Output<java.lang.String> deviceName()
        Returns:
        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.
      • forceDetach

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> forceDetach()
        Returns:
        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.
      • instanceId

        public com.pulumi.core.Output<java.lang.String> instanceId()
        Returns:
        ID of the Instance to attach to.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        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.
      • skipDestroy

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> skipDestroy()
        Returns:
        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.
      • stopInstanceBeforeDetaching

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> stopInstanceBeforeDetaching()
        Returns:
        Whether to ensure that the target instance is stopped before trying to detach the volume. Stops the instance, if it is not already stopped.
      • volumeId

        public com.pulumi.core.Output<java.lang.String> volumeId()
        Returns:
        ID of the Volume to be attached.