com.pulumi.aws.ec2.VolumeAttachmentArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ec2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class VolumeAttachmentArgs extends com.pulumi.resources.ResourceArgs {
public static final VolumeAttachmentArgs Empty = new VolumeAttachmentArgs();
/**
* 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.
*
*/
@Import(name="deviceName", required=true)
private Output deviceName;
/**
* @return 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.
*
*/
public Output deviceName() {
return this.deviceName;
}
/**
* 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.
*
*/
@Import(name="forceDetach")
private @Nullable Output forceDetach;
/**
* @return 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.
*
*/
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy