Package com.pulumi.aws.ec2
Class AmiFromInstanceArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.AmiFromInstanceArgs.Builder
-
- Enclosing class:
- AmiFromInstanceArgs
public static final class AmiFromInstanceArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(AmiFromInstanceArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AmiFromInstanceArgs defaults)
-
-
Method Detail
-
deprecationTime
public AmiFromInstanceArgs.Builder deprecationTime(@Nullable com.pulumi.core.Output<java.lang.String> deprecationTime)
- Parameters:
deprecationTime- Date and time to deprecate the AMI. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`)- Returns:
- builder
-
deprecationTime
public AmiFromInstanceArgs.Builder deprecationTime(java.lang.String deprecationTime)
- Parameters:
deprecationTime- Date and time to deprecate the AMI. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`)- Returns:
- builder
-
description
public AmiFromInstanceArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Longer, human-readable description for the AMI.- Returns:
- builder
-
description
public AmiFromInstanceArgs.Builder description(java.lang.String description)
- Parameters:
description- Longer, human-readable description for the AMI.- Returns:
- builder
-
ebsBlockDevices
public AmiFromInstanceArgs.Builder ebsBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<AmiFromInstanceEbsBlockDeviceArgs>> ebsBlockDevices)
- Parameters:
ebsBlockDevices- Nested block describing an EBS block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
ebsBlockDevices
public AmiFromInstanceArgs.Builder ebsBlockDevices(java.util.List<AmiFromInstanceEbsBlockDeviceArgs> ebsBlockDevices)
- Parameters:
ebsBlockDevices- Nested block describing an EBS block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
ebsBlockDevices
public AmiFromInstanceArgs.Builder ebsBlockDevices(AmiFromInstanceEbsBlockDeviceArgs... ebsBlockDevices)
- Parameters:
ebsBlockDevices- Nested block describing an EBS block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
ephemeralBlockDevices
public AmiFromInstanceArgs.Builder ephemeralBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<AmiFromInstanceEphemeralBlockDeviceArgs>> ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- Nested block describing an ephemeral block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
ephemeralBlockDevices
public AmiFromInstanceArgs.Builder ephemeralBlockDevices(java.util.List<AmiFromInstanceEphemeralBlockDeviceArgs> ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- Nested block describing an ephemeral block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
ephemeralBlockDevices
public AmiFromInstanceArgs.Builder ephemeralBlockDevices(AmiFromInstanceEphemeralBlockDeviceArgs... ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- Nested block describing an ephemeral block device that should be attached to created instances. The structure of this block is described below.- Returns:
- builder
-
name
public AmiFromInstanceArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Region-unique name for the AMI.- Returns:
- builder
-
name
public AmiFromInstanceArgs.Builder name(java.lang.String name)
- Parameters:
name- Region-unique name for the AMI.- Returns:
- builder
-
region
public AmiFromInstanceArgs.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 AmiFromInstanceArgs.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
-
snapshotWithoutReboot
public AmiFromInstanceArgs.Builder snapshotWithoutReboot(@Nullable com.pulumi.core.Output<java.lang.Boolean> snapshotWithoutReboot)
- Parameters:
snapshotWithoutReboot- Boolean that overrides the behavior of stopping the instance before snapshotting. This is risky since it may cause a snapshot of an inconsistent filesystem state, but can be used to avoid downtime if the user otherwise guarantees that no filesystem writes will be underway at the time of snapshot.- Returns:
- builder
-
snapshotWithoutReboot
public AmiFromInstanceArgs.Builder snapshotWithoutReboot(java.lang.Boolean snapshotWithoutReboot)
- Parameters:
snapshotWithoutReboot- Boolean that overrides the behavior of stopping the instance before snapshotting. This is risky since it may cause a snapshot of an inconsistent filesystem state, but can be used to avoid downtime if the user otherwise guarantees that no filesystem writes will be underway at the time of snapshot.- Returns:
- builder
-
sourceInstanceId
public AmiFromInstanceArgs.Builder sourceInstanceId(com.pulumi.core.Output<java.lang.String> sourceInstanceId)
- Parameters:
sourceInstanceId- ID of the instance to use as the basis of the AMI.- Returns:
- builder
-
sourceInstanceId
public AmiFromInstanceArgs.Builder sourceInstanceId(java.lang.String sourceInstanceId)
- Parameters:
sourceInstanceId- ID of the instance to use as the basis of the AMI.- Returns:
- builder
-
tags
public AmiFromInstanceArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public AmiFromInstanceArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
build
public AmiFromInstanceArgs build()
-
-