Class AmiCopyArgs.Builder

  • Enclosing class:
    AmiCopyArgs

    public static final class AmiCopyArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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