Package com.pulumi.aws.ec2
Class AmiCopyArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.AmiCopyArgs.Builder
-
- Enclosing class:
- AmiCopyArgs
public static final class AmiCopyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(AmiCopyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmiCopyArgsbuild()AmiCopyArgs.BuilderdeprecationTime(com.pulumi.core.Output<java.lang.String> deprecationTime)AmiCopyArgs.BuilderdeprecationTime(java.lang.String deprecationTime)AmiCopyArgs.Builderdescription(com.pulumi.core.Output<java.lang.String> description)AmiCopyArgs.Builderdescription(java.lang.String description)AmiCopyArgs.BuilderdestinationOutpostArn(com.pulumi.core.Output<java.lang.String> destinationOutpostArn)AmiCopyArgs.BuilderdestinationOutpostArn(java.lang.String destinationOutpostArn)AmiCopyArgs.BuilderebsBlockDevices(AmiCopyEbsBlockDeviceArgs... ebsBlockDevices)AmiCopyArgs.BuilderebsBlockDevices(com.pulumi.core.Output<java.util.List<AmiCopyEbsBlockDeviceArgs>> ebsBlockDevices)AmiCopyArgs.BuilderebsBlockDevices(java.util.List<AmiCopyEbsBlockDeviceArgs> ebsBlockDevices)AmiCopyArgs.Builderencrypted(com.pulumi.core.Output<java.lang.Boolean> encrypted)AmiCopyArgs.Builderencrypted(java.lang.Boolean encrypted)AmiCopyArgs.BuilderephemeralBlockDevices(AmiCopyEphemeralBlockDeviceArgs... ephemeralBlockDevices)AmiCopyArgs.BuilderephemeralBlockDevices(com.pulumi.core.Output<java.util.List<AmiCopyEphemeralBlockDeviceArgs>> ephemeralBlockDevices)AmiCopyArgs.BuilderephemeralBlockDevices(java.util.List<AmiCopyEphemeralBlockDeviceArgs> ephemeralBlockDevices)AmiCopyArgs.BuilderkmsKeyId(com.pulumi.core.Output<java.lang.String> kmsKeyId)AmiCopyArgs.BuilderkmsKeyId(java.lang.String kmsKeyId)AmiCopyArgs.Buildername(com.pulumi.core.Output<java.lang.String> name)AmiCopyArgs.Buildername(java.lang.String name)AmiCopyArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)AmiCopyArgs.Builderregion(java.lang.String region)AmiCopyArgs.BuildersourceAmiId(com.pulumi.core.Output<java.lang.String> sourceAmiId)AmiCopyArgs.BuildersourceAmiId(java.lang.String sourceAmiId)AmiCopyArgs.BuildersourceAmiRegion(com.pulumi.core.Output<java.lang.String> sourceAmiRegion)AmiCopyArgs.BuildersourceAmiRegion(java.lang.String sourceAmiRegion)AmiCopyArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)AmiCopyArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AmiCopyArgs defaults)
-
-
Method Detail
-
deprecationTime
public AmiCopyArgs.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 AmiCopyArgs.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 AmiCopyArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Longer, human-readable description for the AMI.- Returns:
- builder
-
description
public AmiCopyArgs.Builder description(java.lang.String description)
- Parameters:
description- Longer, human-readable description for the AMI.- Returns:
- builder
-
destinationOutpostArn
public AmiCopyArgs.Builder destinationOutpostArn(@Nullable com.pulumi.core.Output<java.lang.String> destinationOutpostArn)
- Parameters:
destinationOutpostArn- ARN of the Outpost to which to copy the AMI. Only specify this parameter when copying an AMI from an AWS Region to an Outpost. The AMI must be in the Region of the destination Outpost.- Returns:
- builder
-
destinationOutpostArn
public AmiCopyArgs.Builder destinationOutpostArn(java.lang.String destinationOutpostArn)
- Parameters:
destinationOutpostArn- ARN of the Outpost to which to copy the AMI. Only specify this parameter when copying an AMI from an AWS Region to an Outpost. The AMI must be in the Region of the destination Outpost.- Returns:
- builder
-
ebsBlockDevices
public AmiCopyArgs.Builder ebsBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<AmiCopyEbsBlockDeviceArgs>> 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 AmiCopyArgs.Builder ebsBlockDevices(java.util.List<AmiCopyEbsBlockDeviceArgs> 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 AmiCopyArgs.Builder ebsBlockDevices(AmiCopyEbsBlockDeviceArgs... 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
-
encrypted
public AmiCopyArgs.Builder encrypted(@Nullable com.pulumi.core.Output<java.lang.Boolean> encrypted)
- Parameters:
encrypted- Whether the destination snapshots of the copied image should be encrypted. Defaults to `false`- Returns:
- builder
-
encrypted
public AmiCopyArgs.Builder encrypted(java.lang.Boolean encrypted)
- Parameters:
encrypted- Whether the destination snapshots of the copied image should be encrypted. Defaults to `false`- Returns:
- builder
-
ephemeralBlockDevices
public AmiCopyArgs.Builder ephemeralBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<AmiCopyEphemeralBlockDeviceArgs>> 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 AmiCopyArgs.Builder ephemeralBlockDevices(java.util.List<AmiCopyEphemeralBlockDeviceArgs> 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 AmiCopyArgs.Builder ephemeralBlockDevices(AmiCopyEphemeralBlockDeviceArgs... 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
-
kmsKeyId
public AmiCopyArgs.Builder kmsKeyId(@Nullable com.pulumi.core.Output<java.lang.String> kmsKeyId)
- Parameters:
kmsKeyId- Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used- Returns:
- builder
-
kmsKeyId
public AmiCopyArgs.Builder kmsKeyId(java.lang.String kmsKeyId)
- Parameters:
kmsKeyId- Full ARN of the KMS Key to use when encrypting the snapshots of an image during a copy operation. If not specified, then the default AWS KMS Key will be used- Returns:
- builder
-
name
public AmiCopyArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Region-unique name for the AMI.- Returns:
- builder
-
name
public AmiCopyArgs.Builder name(java.lang.String name)
- Parameters:
name- Region-unique name for the AMI.- Returns:
- builder
-
region
public AmiCopyArgs.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 AmiCopyArgs.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
-
sourceAmiId
public AmiCopyArgs.Builder sourceAmiId(com.pulumi.core.Output<java.lang.String> sourceAmiId)
- Parameters:
sourceAmiId- ID of the AMI to copy. This ID must be valid in the region given by `sourceAmiRegion`.- Returns:
- builder
-
sourceAmiId
public AmiCopyArgs.Builder sourceAmiId(java.lang.String sourceAmiId)
- Parameters:
sourceAmiId- ID of the AMI to copy. This ID must be valid in the region given by `sourceAmiRegion`.- Returns:
- builder
-
sourceAmiRegion
public AmiCopyArgs.Builder sourceAmiRegion(com.pulumi.core.Output<java.lang.String> sourceAmiRegion)
- Parameters:
sourceAmiRegion- Region from which the AMI will be copied. This may be the same as the AWS provider region in order to create a copy within the same region.- Returns:
- builder
-
sourceAmiRegion
public AmiCopyArgs.Builder sourceAmiRegion(java.lang.String sourceAmiRegion)
- Parameters:
sourceAmiRegion- Region from which the AMI will be copied. This may be the same as the AWS provider region in order to create a copy within the same region.- Returns:
- builder
-
tags
public AmiCopyArgs.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 AmiCopyArgs.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 AmiCopyArgs build()
-
-