Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.ec2.inputs.InstanceRootBlockDeviceArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class InstanceRootBlockDeviceArgs extends com.pulumi.resources.ResourceArgs {
public static final InstanceRootBlockDeviceArgs Empty = new InstanceRootBlockDeviceArgs();
/**
* Whether the volume should be destroyed on instance termination. Defaults to `true`.
*
*/
@Import(name="deleteOnTermination")
private @Nullable Output deleteOnTermination;
/**
* @return Whether the volume should be destroyed on instance termination. Defaults to `true`.
*
*/
public Optional> deleteOnTermination() {
return Optional.ofNullable(this.deleteOnTermination);
}
/**
* Device name, e.g., `/dev/sdh` or `xvdh`.
*
*/
@Import(name="deviceName")
private @Nullable Output deviceName;
/**
* @return Device name, e.g., `/dev/sdh` or `xvdh`.
*
*/
public Optional> deviceName() {
return Optional.ofNullable(this.deviceName);
}
/**
* Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection.
*
*/
@Import(name="encrypted")
private @Nullable Output encrypted;
/**
* @return Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection.
*
*/
public Optional> encrypted() {
return Optional.ofNullable(this.encrypted);
}
/**
* Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`.
*
*/
@Import(name="iops")
private @Nullable Output iops;
/**
* @return Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`.
*
*/
public Optional> iops() {
return Optional.ofNullable(this.iops);
}
/**
* Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection.
*
*/
@Import(name="kmsKeyId")
private @Nullable Output kmsKeyId;
/**
* @return Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection.
*
*/
public Optional> kmsKeyId() {
return Optional.ofNullable(this.kmsKeyId);
}
/**
* Map of tags to assign to the device.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Map of tags to assign to the device.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
*/
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
*/
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`.
*
*/
@Import(name="throughput")
private @Nullable Output throughput;
/**
* @return Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`.
*
*/
public Optional> throughput() {
return Optional.ofNullable(this.throughput);
}
/**
* ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`.
*
*/
@Import(name="volumeId")
private @Nullable Output volumeId;
/**
* @return ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`.
*
*/
public Optional> volumeId() {
return Optional.ofNullable(this.volumeId);
}
/**
* Size of the volume in gibibytes (GiB).
*
*/
@Import(name="volumeSize")
private @Nullable Output volumeSize;
/**
* @return Size of the volume in gibibytes (GiB).
*
*/
public Optional> volumeSize() {
return Optional.ofNullable(this.volumeSize);
}
/**
* Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to the volume type that the AMI uses.
*
* Modifying the `encrypted` or `kms_key_id` settings of the `root_block_device` requires resource replacement.
*
*/
@Import(name="volumeType")
private @Nullable Output volumeType;
/**
* @return Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to the volume type that the AMI uses.
*
* Modifying the `encrypted` or `kms_key_id` settings of the `root_block_device` requires resource replacement.
*
*/
public Optional> volumeType() {
return Optional.ofNullable(this.volumeType);
}
private InstanceRootBlockDeviceArgs() {}
private InstanceRootBlockDeviceArgs(InstanceRootBlockDeviceArgs $) {
this.deleteOnTermination = $.deleteOnTermination;
this.deviceName = $.deviceName;
this.encrypted = $.encrypted;
this.iops = $.iops;
this.kmsKeyId = $.kmsKeyId;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.throughput = $.throughput;
this.volumeId = $.volumeId;
this.volumeSize = $.volumeSize;
this.volumeType = $.volumeType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InstanceRootBlockDeviceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private InstanceRootBlockDeviceArgs $;
public Builder() {
$ = new InstanceRootBlockDeviceArgs();
}
public Builder(InstanceRootBlockDeviceArgs defaults) {
$ = new InstanceRootBlockDeviceArgs(Objects.requireNonNull(defaults));
}
/**
* @param deleteOnTermination Whether the volume should be destroyed on instance termination. Defaults to `true`.
*
* @return builder
*
*/
public Builder deleteOnTermination(@Nullable Output deleteOnTermination) {
$.deleteOnTermination = deleteOnTermination;
return this;
}
/**
* @param deleteOnTermination Whether the volume should be destroyed on instance termination. Defaults to `true`.
*
* @return builder
*
*/
public Builder deleteOnTermination(Boolean deleteOnTermination) {
return deleteOnTermination(Output.of(deleteOnTermination));
}
/**
* @param deviceName Device name, e.g., `/dev/sdh` or `xvdh`.
*
* @return builder
*
*/
public Builder deviceName(@Nullable Output deviceName) {
$.deviceName = deviceName;
return this;
}
/**
* @param deviceName Device name, e.g., `/dev/sdh` or `xvdh`.
*
* @return builder
*
*/
public Builder deviceName(String deviceName) {
return deviceName(Output.of(deviceName));
}
/**
* @param encrypted Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection.
*
* @return builder
*
*/
public Builder encrypted(@Nullable Output encrypted) {
$.encrypted = encrypted;
return this;
}
/**
* @param encrypted Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection.
*
* @return builder
*
*/
public Builder encrypted(Boolean encrypted) {
return encrypted(Output.of(encrypted));
}
/**
* @param iops Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`.
*
* @return builder
*
*/
public Builder iops(@Nullable Output iops) {
$.iops = iops;
return this;
}
/**
* @param iops Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`.
*
* @return builder
*
*/
public Builder iops(Integer iops) {
return iops(Output.of(iops));
}
/**
* @param kmsKeyId Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection.
*
* @return builder
*
*/
public Builder kmsKeyId(@Nullable Output kmsKeyId) {
$.kmsKeyId = kmsKeyId;
return this;
}
/**
* @param kmsKeyId Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection.
*
* @return builder
*
*/
public Builder kmsKeyId(String kmsKeyId) {
return kmsKeyId(Output.of(kmsKeyId));
}
/**
* @param tags Map of tags to assign to the device.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Map of tags to assign to the device.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
*/
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
*/
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param throughput Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`.
*
* @return builder
*
*/
public Builder throughput(@Nullable Output throughput) {
$.throughput = throughput;
return this;
}
/**
* @param throughput Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`.
*
* @return builder
*
*/
public Builder throughput(Integer throughput) {
return throughput(Output.of(throughput));
}
/**
* @param volumeId ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`.
*
* @return builder
*
*/
public Builder volumeId(@Nullable Output volumeId) {
$.volumeId = volumeId;
return this;
}
/**
* @param volumeId ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`.
*
* @return builder
*
*/
public Builder volumeId(String volumeId) {
return volumeId(Output.of(volumeId));
}
/**
* @param volumeSize Size of the volume in gibibytes (GiB).
*
* @return builder
*
*/
public Builder volumeSize(@Nullable Output volumeSize) {
$.volumeSize = volumeSize;
return this;
}
/**
* @param volumeSize Size of the volume in gibibytes (GiB).
*
* @return builder
*
*/
public Builder volumeSize(Integer volumeSize) {
return volumeSize(Output.of(volumeSize));
}
/**
* @param volumeType Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to the volume type that the AMI uses.
*
* Modifying the `encrypted` or `kms_key_id` settings of the `root_block_device` requires resource replacement.
*
* @return builder
*
*/
public Builder volumeType(@Nullable Output volumeType) {
$.volumeType = volumeType;
return this;
}
/**
* @param volumeType Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to the volume type that the AMI uses.
*
* Modifying the `encrypted` or `kms_key_id` settings of the `root_block_device` requires resource replacement.
*
* @return builder
*
*/
public Builder volumeType(String volumeType) {
return volumeType(Output.of(volumeType));
}
public InstanceRootBlockDeviceArgs build() {
return $;
}
}
}