Class AmiArgs.Builder

  • Enclosing class:
    AmiArgs

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

      • Builder

        public Builder()
      • Builder

        public Builder​(AmiArgs defaults)
    • Method Detail

      • architecture

        public AmiArgs.Builder architecture​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> architecture)
        Parameters:
        architecture - Machine architecture for created instances. Defaults to `x8664`.
        Returns:
        builder
      • architecture

        public AmiArgs.Builder architecture​(java.lang.String architecture)
        Parameters:
        architecture - Machine architecture for created instances. Defaults to `x8664`.
        Returns:
        builder
      • bootMode

        public AmiArgs.Builder bootMode​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> bootMode)
        Parameters:
        bootMode - Boot mode of the AMI. For more information, see [Boot modes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the EC2 User Guide.
        Returns:
        builder
      • bootMode

        public AmiArgs.Builder bootMode​(java.lang.String bootMode)
        Parameters:
        bootMode - Boot mode of the AMI. For more information, see [Boot modes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the EC2 User Guide.
        Returns:
        builder
      • deprecationTime

        public AmiArgs.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 AmiArgs.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 AmiArgs.Builder description​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Longer, human-readable description for the AMI.
        Returns:
        builder
      • description

        public AmiArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Longer, human-readable description for the AMI.
        Returns:
        builder
      • ebsBlockDevices

        public AmiArgs.Builder ebsBlockDevices​(@Nullable
                                               com.pulumi.core.Output<java.util.List<AmiEbsBlockDeviceArgs>> 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 AmiArgs.Builder ebsBlockDevices​(java.util.List<AmiEbsBlockDeviceArgs> 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 AmiArgs.Builder ebsBlockDevices​(AmiEbsBlockDeviceArgs... 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
      • enaSupport

        public AmiArgs.Builder enaSupport​(@Nullable
                                          com.pulumi.core.Output<java.lang.Boolean> enaSupport)
        Parameters:
        enaSupport - Whether enhanced networking with ENA is enabled. Defaults to `false`.
        Returns:
        builder
      • enaSupport

        public AmiArgs.Builder enaSupport​(java.lang.Boolean enaSupport)
        Parameters:
        enaSupport - Whether enhanced networking with ENA is enabled. Defaults to `false`.
        Returns:
        builder
      • ephemeralBlockDevices

        public AmiArgs.Builder ephemeralBlockDevices​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<AmiEphemeralBlockDeviceArgs>> 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 AmiArgs.Builder ephemeralBlockDevices​(java.util.List<AmiEphemeralBlockDeviceArgs> 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 AmiArgs.Builder ephemeralBlockDevices​(AmiEphemeralBlockDeviceArgs... 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
      • imageLocation

        public AmiArgs.Builder imageLocation​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> imageLocation)
      • imageLocation

        public AmiArgs.Builder imageLocation​(java.lang.String imageLocation)
      • imdsSupport

        public AmiArgs.Builder imdsSupport​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> imdsSupport)
        Parameters:
        imdsSupport - If EC2 instances started from this image should require the use of the Instance Metadata Service V2 (IMDSv2), set this argument to `v2.0`. For more information, see [Configure instance metadata options for new instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration).
        Returns:
        builder
      • imdsSupport

        public AmiArgs.Builder imdsSupport​(java.lang.String imdsSupport)
        Parameters:
        imdsSupport - If EC2 instances started from this image should require the use of the Instance Metadata Service V2 (IMDSv2), set this argument to `v2.0`. For more information, see [Configure instance metadata options for new instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration).
        Returns:
        builder
      • kernelId

        public AmiArgs.Builder kernelId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> kernelId)
      • kernelId

        public AmiArgs.Builder kernelId​(java.lang.String kernelId)
      • name

        public AmiArgs.Builder name​(@Nullable
                                    com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Region-unique name for the AMI.
        Returns:
        builder
      • name

        public AmiArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Region-unique name for the AMI.
        Returns:
        builder
      • ramdiskId

        public AmiArgs.Builder ramdiskId​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> ramdiskId)
      • ramdiskId

        public AmiArgs.Builder ramdiskId​(java.lang.String ramdiskId)
      • region

        public AmiArgs.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 AmiArgs.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
      • rootDeviceName

        public AmiArgs.Builder rootDeviceName​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> rootDeviceName)
        Parameters:
        rootDeviceName - Name of the root device (for example, `/dev/sda1`, or `/dev/xvda`).
        Returns:
        builder
      • rootDeviceName

        public AmiArgs.Builder rootDeviceName​(java.lang.String rootDeviceName)
        Parameters:
        rootDeviceName - Name of the root device (for example, `/dev/sda1`, or `/dev/xvda`).
        Returns:
        builder
      • sriovNetSupport

        public AmiArgs.Builder sriovNetSupport​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> sriovNetSupport)
      • sriovNetSupport

        public AmiArgs.Builder sriovNetSupport​(java.lang.String sriovNetSupport)
      • tags

        public AmiArgs.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 AmiArgs.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
      • tpmSupport

        public AmiArgs.Builder tpmSupport​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> tpmSupport)
        Parameters:
        tpmSupport - If the image is configured for NitroTPM support, the value is `v2.0`. For more information, see [NitroTPM](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html) in the EC2 User Guide.
        Returns:
        builder
      • tpmSupport

        public AmiArgs.Builder tpmSupport​(java.lang.String tpmSupport)
        Parameters:
        tpmSupport - If the image is configured for NitroTPM support, the value is `v2.0`. For more information, see [NitroTPM](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html) in the EC2 User Guide.
        Returns:
        builder
      • uefiData

        public AmiArgs.Builder uefiData​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> uefiData)
        Parameters:
        uefiData - Base64 representation of the non-volatile UEFI variable store.
        Returns:
        builder
      • uefiData

        public AmiArgs.Builder uefiData​(java.lang.String uefiData)
        Parameters:
        uefiData - Base64 representation of the non-volatile UEFI variable store.
        Returns:
        builder
      • virtualizationType

        public AmiArgs.Builder virtualizationType​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> virtualizationType)
        Parameters:
        virtualizationType - Keyword to choose what virtualization mode created instances will use. Can be either "paravirtual" (the default) or "hvm". The choice of virtualization type changes the set of further arguments that are required, as described below.
        Returns:
        builder
      • virtualizationType

        public AmiArgs.Builder virtualizationType​(java.lang.String virtualizationType)
        Parameters:
        virtualizationType - Keyword to choose what virtualization mode created instances will use. Can be either "paravirtual" (the default) or "hvm". The choice of virtualization type changes the set of further arguments that are required, as described below.
        Returns:
        builder