Class AmiFromInstanceState.Builder

  • Enclosing class:
    AmiFromInstanceState

    public static final class AmiFromInstanceState.Builder
    extends java.lang.Object
    • Method Detail

      • architecture

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

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

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

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

        public AmiFromInstanceState.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 AmiFromInstanceState.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 AmiFromInstanceState.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
      • enaSupport

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

        public AmiFromInstanceState.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 AmiFromInstanceState.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 AmiFromInstanceState.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
      • imageLocation

        public AmiFromInstanceState.Builder imageLocation​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> imageLocation)
        Parameters:
        imageLocation - Path to an S3 object containing an image manifest, e.g., created by the `ec2-upload-bundle` command in the EC2 command line tools.
        Returns:
        builder
      • imageLocation

        public AmiFromInstanceState.Builder imageLocation​(java.lang.String imageLocation)
        Parameters:
        imageLocation - Path to an S3 object containing an image manifest, e.g., created by the `ec2-upload-bundle` command in the EC2 command line tools.
        Returns:
        builder
      • imageOwnerAlias

        public AmiFromInstanceState.Builder imageOwnerAlias​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> imageOwnerAlias)
      • imdsSupport

        public AmiFromInstanceState.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 AmiFromInstanceState.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 AmiFromInstanceState.Builder kernelId​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> kernelId)
        Parameters:
        kernelId - ID of the kernel image (AKI) that will be used as the paravirtual kernel in created instances.
        Returns:
        builder
      • kernelId

        public AmiFromInstanceState.Builder kernelId​(java.lang.String kernelId)
        Parameters:
        kernelId - ID of the kernel image (AKI) that will be used as the paravirtual kernel in created instances.
        Returns:
        builder
      • lastLaunchedTime

        public AmiFromInstanceState.Builder lastLaunchedTime​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> lastLaunchedTime)
      • manageEbsSnapshots

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

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

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

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

        public AmiFromInstanceState.Builder ramdiskId​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> ramdiskId)
        Parameters:
        ramdiskId - ID of an initrd image (ARI) that will be used when booting the created instances.
        Returns:
        builder
      • ramdiskId

        public AmiFromInstanceState.Builder ramdiskId​(java.lang.String ramdiskId)
        Parameters:
        ramdiskId - ID of an initrd image (ARI) that will be used when booting the created instances.
        Returns:
        builder
      • region

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

        public AmiFromInstanceState.Builder rootSnapshotId​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> rootSnapshotId)
      • snapshotWithoutReboot

        public AmiFromInstanceState.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 AmiFromInstanceState.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 AmiFromInstanceState.Builder sourceInstanceId​(@Nullable
                                                             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 AmiFromInstanceState.Builder sourceInstanceId​(java.lang.String sourceInstanceId)
        Parameters:
        sourceInstanceId - ID of the instance to use as the basis of the AMI.
        Returns:
        builder
      • sriovNetSupport

        public AmiFromInstanceState.Builder sriovNetSupport​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> sriovNetSupport)
        Parameters:
        sriovNetSupport - When set to "simple" (the default), enables enhanced networking for created instances. No other value is supported at this time.
        Returns:
        builder
      • sriovNetSupport

        public AmiFromInstanceState.Builder sriovNetSupport​(java.lang.String sriovNetSupport)
        Parameters:
        sriovNetSupport - When set to "simple" (the default), enables enhanced networking for created instances. No other value is supported at this time.
        Returns:
        builder
      • tags

        public AmiFromInstanceState.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 AmiFromInstanceState.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 AmiFromInstanceState.Builder tagsAll​(@Nullable
                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
      • tpmSupport

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

        public AmiFromInstanceState.Builder usageOperation​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> usageOperation)
      • virtualizationType

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