Class AmiState.Builder

  • Enclosing class:
    AmiState

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

      • Builder

        public Builder()
      • Builder

        public Builder​(AmiState defaults)
    • Method Detail

      • architecture

        public AmiState.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 AmiState.Builder architecture​(java.lang.String architecture)
        Parameters:
        architecture - Machine architecture for created instances. Defaults to `x8664`.
        Returns:
        builder
      • arn

        public AmiState.Builder arn​(@Nullable
                                    com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the AMI.
        Returns:
        builder
      • arn

        public AmiState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the AMI.
        Returns:
        builder
      • bootMode

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

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

        public AmiState.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 AmiState.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 AmiState.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 AmiState.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 AmiState.Builder enaSupport​(java.lang.Boolean enaSupport)
        Parameters:
        enaSupport - Whether enhanced networking with ENA is enabled. Defaults to `false`.
        Returns:
        builder
      • ephemeralBlockDevices

        public AmiState.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 AmiState.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 AmiState.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
      • hypervisor

        public AmiState.Builder hypervisor​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> hypervisor)
        Parameters:
        hypervisor - Hypervisor type of the image.
        Returns:
        builder
      • hypervisor

        public AmiState.Builder hypervisor​(java.lang.String hypervisor)
        Parameters:
        hypervisor - Hypervisor type of the image.
        Returns:
        builder
      • imageLocation

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

        public AmiState.Builder imageLocation​(java.lang.String imageLocation)
      • imageOwnerAlias

        public AmiState.Builder imageOwnerAlias​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> imageOwnerAlias)
        Parameters:
        imageOwnerAlias - AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
        Returns:
        builder
      • imageOwnerAlias

        public AmiState.Builder imageOwnerAlias​(java.lang.String imageOwnerAlias)
        Parameters:
        imageOwnerAlias - AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
        Returns:
        builder
      • imageType

        public AmiState.Builder imageType​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> imageType)
        Parameters:
        imageType - Type of image.
        Returns:
        builder
      • imageType

        public AmiState.Builder imageType​(java.lang.String imageType)
        Parameters:
        imageType - Type of image.
        Returns:
        builder
      • imdsSupport

        public AmiState.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 AmiState.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 AmiState.Builder kernelId​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> kernelId)
      • lastLaunchedTime

        public AmiState.Builder lastLaunchedTime​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> lastLaunchedTime)
        Parameters:
        lastLaunchedTime - Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
        Returns:
        builder
      • lastLaunchedTime

        public AmiState.Builder lastLaunchedTime​(java.lang.String lastLaunchedTime)
        Parameters:
        lastLaunchedTime - Date and time, in ISO 8601 date-time format , when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported. For more information, see the following [AWS document](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-last-launched-time.html).
        Returns:
        builder
      • manageEbsSnapshots

        public AmiState.Builder manageEbsSnapshots​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Boolean> manageEbsSnapshots)
      • manageEbsSnapshots

        public AmiState.Builder manageEbsSnapshots​(java.lang.Boolean manageEbsSnapshots)
      • name

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

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

        public AmiState.Builder ownerId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> ownerId)
        Parameters:
        ownerId - AWS account ID of the image owner.
        Returns:
        builder
      • ownerId

        public AmiState.Builder ownerId​(java.lang.String ownerId)
        Parameters:
        ownerId - AWS account ID of the image owner.
        Returns:
        builder
      • platform

        public AmiState.Builder platform​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> platform)
        Parameters:
        platform - This value is set to windows for Windows AMIs; otherwise, it is blank.
        Returns:
        builder
      • platform

        public AmiState.Builder platform​(java.lang.String platform)
        Parameters:
        platform - This value is set to windows for Windows AMIs; otherwise, it is blank.
        Returns:
        builder
      • platformDetails

        public AmiState.Builder platformDetails​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> platformDetails)
        Parameters:
        platformDetails - Platform details associated with the billing code of the AMI.
        Returns:
        builder
      • platformDetails

        public AmiState.Builder platformDetails​(java.lang.String platformDetails)
        Parameters:
        platformDetails - Platform details associated with the billing code of the AMI.
        Returns:
        builder
      • public_

        public AmiState.Builder public_​(@Nullable
                                        com.pulumi.core.Output<java.lang.Boolean> public_)
        Parameters:
        public_ - Whether the image has public launch permissions.
        Returns:
        builder
      • public_

        public AmiState.Builder public_​(java.lang.Boolean public_)
        Parameters:
        public_ - Whether the image has public launch permissions.
        Returns:
        builder
      • ramdiskId

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

        public AmiState.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 AmiState.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 AmiState.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 AmiState.Builder rootDeviceName​(java.lang.String rootDeviceName)
        Parameters:
        rootDeviceName - Name of the root device (for example, `/dev/sda1`, or `/dev/xvda`).
        Returns:
        builder
      • rootSnapshotId

        public AmiState.Builder rootSnapshotId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> rootSnapshotId)
        Parameters:
        rootSnapshotId - Snapshot ID for the root volume (for EBS-backed AMIs)
        Returns:
        builder
      • rootSnapshotId

        public AmiState.Builder rootSnapshotId​(java.lang.String rootSnapshotId)
        Parameters:
        rootSnapshotId - Snapshot ID for the root volume (for EBS-backed AMIs)
        Returns:
        builder
      • sriovNetSupport

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

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

        public AmiState.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 AmiState.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
      • tagsAll

        public AmiState.Builder tagsAll​(@Nullable
                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public AmiState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tpmSupport

        public AmiState.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 AmiState.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 AmiState.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 AmiState.Builder uefiData​(java.lang.String uefiData)
        Parameters:
        uefiData - Base64 representation of the non-volatile UEFI variable store.
        Returns:
        builder
      • usageOperation

        public AmiState.Builder usageOperation​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> usageOperation)
        Parameters:
        usageOperation - Operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
        Returns:
        builder
      • usageOperation

        public AmiState.Builder usageOperation​(java.lang.String usageOperation)
        Parameters:
        usageOperation - Operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
        Returns:
        builder
      • virtualizationType

        public AmiState.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 AmiState.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