Package com.pulumi.aws.ec2.inputs
Class SpotInstanceRequestState.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.inputs.SpotInstanceRequestState.Builder
-
- Enclosing class:
- SpotInstanceRequestState
public static final class SpotInstanceRequestState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(SpotInstanceRequestState defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(SpotInstanceRequestState defaults)
-
-
Method Detail
-
ami
public SpotInstanceRequestState.Builder ami(@Nullable com.pulumi.core.Output<java.lang.String> ami)
- Parameters:
ami- AMI to use for the instance. Required unless `launchTemplate` is specified and the Launch Template specifies an AMI. If an AMI is specified in the Launch Template, setting `ami` will override the AMI specified in the Launch Template.- Returns:
- builder
-
ami
public SpotInstanceRequestState.Builder ami(java.lang.String ami)
- Parameters:
ami- AMI to use for the instance. Required unless `launchTemplate` is specified and the Launch Template specifies an AMI. If an AMI is specified in the Launch Template, setting `ami` will override the AMI specified in the Launch Template.- Returns:
- builder
-
arn
public SpotInstanceRequestState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
-
arn
public SpotInstanceRequestState.Builder arn(java.lang.String arn)
-
associatePublicIpAddress
public SpotInstanceRequestState.Builder associatePublicIpAddress(@Nullable com.pulumi.core.Output<java.lang.Boolean> associatePublicIpAddress)
- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with an instance in a VPC.- Returns:
- builder
-
associatePublicIpAddress
public SpotInstanceRequestState.Builder associatePublicIpAddress(java.lang.Boolean associatePublicIpAddress)
- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with an instance in a VPC.- Returns:
- builder
-
availabilityZone
public SpotInstanceRequestState.Builder availabilityZone(@Nullable com.pulumi.core.Output<java.lang.String> availabilityZone)
- Parameters:
availabilityZone- AZ to start the instance in.- Returns:
- builder
-
availabilityZone
public SpotInstanceRequestState.Builder availabilityZone(java.lang.String availabilityZone)
- Parameters:
availabilityZone- AZ to start the instance in.- Returns:
- builder
-
capacityReservationSpecification
public SpotInstanceRequestState.Builder capacityReservationSpecification(@Nullable com.pulumi.core.Output<SpotInstanceRequestCapacityReservationSpecificationArgs> capacityReservationSpecification)
- Parameters:
capacityReservationSpecification- Describes an instance's Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.- Returns:
- builder
-
capacityReservationSpecification
public SpotInstanceRequestState.Builder capacityReservationSpecification(SpotInstanceRequestCapacityReservationSpecificationArgs capacityReservationSpecification)
- Parameters:
capacityReservationSpecification- Describes an instance's Capacity Reservation targeting option. See Capacity Reservation Specification below for more details.- Returns:
- builder
-
cpuOptions
public SpotInstanceRequestState.Builder cpuOptions(@Nullable com.pulumi.core.Output<SpotInstanceRequestCpuOptionsArgs> cpuOptions)
- Parameters:
cpuOptions- The CPU options for the instance. See CPU Options below for more details.- Returns:
- builder
-
cpuOptions
public SpotInstanceRequestState.Builder cpuOptions(SpotInstanceRequestCpuOptionsArgs cpuOptions)
- Parameters:
cpuOptions- The CPU options for the instance. See CPU Options below for more details.- Returns:
- builder
-
creditSpecification
public SpotInstanceRequestState.Builder creditSpecification(@Nullable com.pulumi.core.Output<SpotInstanceRequestCreditSpecificationArgs> creditSpecification)
- Parameters:
creditSpecification- Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.- Returns:
- builder
-
creditSpecification
public SpotInstanceRequestState.Builder creditSpecification(SpotInstanceRequestCreditSpecificationArgs creditSpecification)
- Parameters:
creditSpecification- Configuration block for customizing the credit specification of the instance. See Credit Specification below for more details. This provider will only perform drift detection of its value when present in a configuration. Removing this configuration on existing instances will only stop managing it. It will not change the configuration back to the default for the instance type.- Returns:
- builder
-
disableApiStop
public SpotInstanceRequestState.Builder disableApiStop(@Nullable com.pulumi.core.Output<java.lang.Boolean> disableApiStop)
- Parameters:
disableApiStop- If true, enables [EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection).- Returns:
- builder
-
disableApiStop
public SpotInstanceRequestState.Builder disableApiStop(java.lang.Boolean disableApiStop)
- Parameters:
disableApiStop- If true, enables [EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection).- Returns:
- builder
-
disableApiTermination
public SpotInstanceRequestState.Builder disableApiTermination(@Nullable com.pulumi.core.Output<java.lang.Boolean> disableApiTermination)
- Parameters:
disableApiTermination- If true, enables [EC2 Instance Termination Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingDisableAPITermination).- Returns:
- builder
-
disableApiTermination
public SpotInstanceRequestState.Builder disableApiTermination(java.lang.Boolean disableApiTermination)
- Parameters:
disableApiTermination- If true, enables [EC2 Instance Termination Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingDisableAPITermination).- Returns:
- builder
-
ebsBlockDevices
public SpotInstanceRequestState.Builder ebsBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<SpotInstanceRequestEbsBlockDeviceArgs>> ebsBlockDevices)
- Parameters:
ebsBlockDevices- One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
ebsBlockDevices
public SpotInstanceRequestState.Builder ebsBlockDevices(java.util.List<SpotInstanceRequestEbsBlockDeviceArgs> ebsBlockDevices)
- Parameters:
ebsBlockDevices- One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
ebsBlockDevices
public SpotInstanceRequestState.Builder ebsBlockDevices(SpotInstanceRequestEbsBlockDeviceArgs... ebsBlockDevices)
- Parameters:
ebsBlockDevices- One or more configuration blocks with additional EBS block devices to attach to the instance. Block device configurations only apply on resource creation. See Block Devices below for details on attributes and drift detection. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
ebsOptimized
public SpotInstanceRequestState.Builder ebsOptimized(@Nullable com.pulumi.core.Output<java.lang.Boolean> ebsOptimized)
- Parameters:
ebsOptimized- If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the [EBS Optimized section](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html) of the AWS User Guide for more information.- Returns:
- builder
-
ebsOptimized
public SpotInstanceRequestState.Builder ebsOptimized(java.lang.Boolean ebsOptimized)
- Parameters:
ebsOptimized- If true, the launched EC2 instance will be EBS-optimized. Note that if this is not set on an instance type that is optimized by default then this will show as disabled but if the instance type is optimized by default then there is no need to set this and there is no effect to disabling it. See the [EBS Optimized section](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html) of the AWS User Guide for more information.- Returns:
- builder
-
enablePrimaryIpv6
public SpotInstanceRequestState.Builder enablePrimaryIpv6(@Nullable com.pulumi.core.Output<java.lang.Boolean> enablePrimaryIpv6)
- Parameters:
enablePrimaryIpv6- Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling `enablePrimaryIpv6` after it has been enabled forces recreation of the instance.- Returns:
- builder
-
enablePrimaryIpv6
public SpotInstanceRequestState.Builder enablePrimaryIpv6(java.lang.Boolean enablePrimaryIpv6)
- Parameters:
enablePrimaryIpv6- Whether to assign a primary IPv6 Global Unicast Address (GUA) to the instance when launched in a dual-stack or IPv6-only subnet. A primary IPv6 address ensures a consistent IPv6 address for the instance and is automatically assigned by AWS to the ENI. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains until the instance is terminated or the ENI is detached. Disabling `enablePrimaryIpv6` after it has been enabled forces recreation of the instance.- Returns:
- builder
-
enclaveOptions
public SpotInstanceRequestState.Builder enclaveOptions(@Nullable com.pulumi.core.Output<SpotInstanceRequestEnclaveOptionsArgs> enclaveOptions)
- Parameters:
enclaveOptions- Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.- Returns:
- builder
-
enclaveOptions
public SpotInstanceRequestState.Builder enclaveOptions(SpotInstanceRequestEnclaveOptionsArgs enclaveOptions)
- Parameters:
enclaveOptions- Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.- Returns:
- builder
-
ephemeralBlockDevices
public SpotInstanceRequestState.Builder ephemeralBlockDevices(@Nullable com.pulumi.core.Output<java.util.List<SpotInstanceRequestEphemeralBlockDeviceArgs>> ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
ephemeralBlockDevices
public SpotInstanceRequestState.Builder ephemeralBlockDevices(java.util.List<SpotInstanceRequestEphemeralBlockDeviceArgs> ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
ephemeralBlockDevices
public SpotInstanceRequestState.Builder ephemeralBlockDevices(SpotInstanceRequestEphemeralBlockDeviceArgs... ephemeralBlockDevices)
- Parameters:
ephemeralBlockDevices- One or more configuration blocks to customize Ephemeral (also known as "Instance Store") volumes on the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a set of objects.- Returns:
- builder
-
forceDestroy
public SpotInstanceRequestState.Builder forceDestroy(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
- Parameters:
forceDestroy- Destroys instance even if `disableApiTermination` or `disableApiStop` is set to `true`. Defaults to `false`. Once this parameter is set to `true`, a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the instance or destroying the instance, this flag will not work. Additionally when importing an instance, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.- Returns:
- builder
-
forceDestroy
public SpotInstanceRequestState.Builder forceDestroy(java.lang.Boolean forceDestroy)
- Parameters:
forceDestroy- Destroys instance even if `disableApiTermination` or `disableApiStop` is set to `true`. Defaults to `false`. Once this parameter is set to `true`, a successful `pulumi up` run before a destroy is required to update this value in the resource state. Without a successful `pulumi up` after this parameter is set, this flag will have no effect. If setting this field in the same operation that would require replacing the instance or destroying the instance, this flag will not work. Additionally when importing an instance, a successful `pulumi up` is required to set this value in state before it will take effect on a destroy operation.- Returns:
- builder
-
getPasswordData
public SpotInstanceRequestState.Builder getPasswordData(@Nullable com.pulumi.core.Output<java.lang.Boolean> getPasswordData)
- Parameters:
getPasswordData- If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the `passwordData` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.- Returns:
- builder
-
getPasswordData
public SpotInstanceRequestState.Builder getPasswordData(java.lang.Boolean getPasswordData)
- Parameters:
getPasswordData- If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the `passwordData` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.- Returns:
- builder
-
hibernation
public SpotInstanceRequestState.Builder hibernation(@Nullable com.pulumi.core.Output<java.lang.Boolean> hibernation)
- Parameters:
hibernation- If true, the launched EC2 instance will support hibernation.- Returns:
- builder
-
hibernation
public SpotInstanceRequestState.Builder hibernation(java.lang.Boolean hibernation)
- Parameters:
hibernation- If true, the launched EC2 instance will support hibernation.- Returns:
- builder
-
hostId
public SpotInstanceRequestState.Builder hostId(@Nullable com.pulumi.core.Output<java.lang.String> hostId)
- Parameters:
hostId- ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host.- Returns:
- builder
-
hostId
public SpotInstanceRequestState.Builder hostId(java.lang.String hostId)
- Parameters:
hostId- ID of a dedicated host that the instance will be assigned to. Use when an instance is to be launched on a specific dedicated host.- Returns:
- builder
-
hostResourceGroupArn
public SpotInstanceRequestState.Builder hostResourceGroupArn(@Nullable com.pulumi.core.Output<java.lang.String> hostResourceGroupArn)
- Parameters:
hostResourceGroupArn- ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the `tenancy` parameter or set it to `host`.- Returns:
- builder
-
hostResourceGroupArn
public SpotInstanceRequestState.Builder hostResourceGroupArn(java.lang.String hostResourceGroupArn)
- Parameters:
hostResourceGroupArn- ARN of the host resource group in which to launch the instances. If you specify an ARN, omit the `tenancy` parameter or set it to `host`.- Returns:
- builder
-
iamInstanceProfile
public SpotInstanceRequestState.Builder iamInstanceProfile(@Nullable com.pulumi.core.Output<java.lang.String> iamInstanceProfile)
- Parameters:
iamInstanceProfile- IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the [EC2 documentation](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html#roles-usingrole-ec2instance-permissions), notably `iam:PassRole`.- Returns:
- builder
-
iamInstanceProfile
public SpotInstanceRequestState.Builder iamInstanceProfile(java.lang.String iamInstanceProfile)
- Parameters:
iamInstanceProfile- IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile. Ensure your credentials have the correct permission to assign the instance profile according to the [EC2 documentation](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html#roles-usingrole-ec2instance-permissions), notably `iam:PassRole`.- Returns:
- builder
-
instanceInitiatedShutdownBehavior
public SpotInstanceRequestState.Builder instanceInitiatedShutdownBehavior(@Nullable com.pulumi.core.Output<java.lang.String> instanceInitiatedShutdownBehavior)
- Parameters:
instanceInitiatedShutdownBehavior- Shutdown behavior for the instance. Amazon defaults this to `stop` for EBS-backed instances and `terminate` for instance-store instances. Cannot be set on instance-store instances. See [Shutdown Behavior](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) for more information.- Returns:
- builder
-
instanceInitiatedShutdownBehavior
public SpotInstanceRequestState.Builder instanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
- Parameters:
instanceInitiatedShutdownBehavior- Shutdown behavior for the instance. Amazon defaults this to `stop` for EBS-backed instances and `terminate` for instance-store instances. Cannot be set on instance-store instances. See [Shutdown Behavior](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior) for more information.- Returns:
- builder
-
instanceInterruptionBehavior
public SpotInstanceRequestState.Builder instanceInterruptionBehavior(@Nullable com.pulumi.core.Output<java.lang.String> instanceInterruptionBehavior)
- Parameters:
instanceInterruptionBehavior- Indicates Spot instance behavior when it is interrupted. Valid values are `terminate`, `stop`, or `hibernate`. Default value is `terminate`.- Returns:
- builder
-
instanceInterruptionBehavior
public SpotInstanceRequestState.Builder instanceInterruptionBehavior(java.lang.String instanceInterruptionBehavior)
- Parameters:
instanceInterruptionBehavior- Indicates Spot instance behavior when it is interrupted. Valid values are `terminate`, `stop`, or `hibernate`. Default value is `terminate`.- Returns:
- builder
-
instanceState
public SpotInstanceRequestState.Builder instanceState(@Nullable com.pulumi.core.Output<java.lang.String> instanceState)
-
instanceState
public SpotInstanceRequestState.Builder instanceState(java.lang.String instanceState)
-
instanceType
public SpotInstanceRequestState.Builder instanceType(@Nullable com.pulumi.core.Output<java.lang.String> instanceType)
- Parameters:
instanceType- Instance type to use for the instance. Required unless `launchTemplate` is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting `instanceType` will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.- Returns:
- builder
-
instanceType
public SpotInstanceRequestState.Builder instanceType(java.lang.String instanceType)
- Parameters:
instanceType- Instance type to use for the instance. Required unless `launchTemplate` is specified and the Launch Template specifies an instance type. If an instance type is specified in the Launch Template, setting `instanceType` will override the instance type specified in the Launch Template. Updates to this field will trigger a stop/start of the EC2 instance.- Returns:
- builder
-
ipv6AddressCount
public SpotInstanceRequestState.Builder ipv6AddressCount(@Nullable com.pulumi.core.Output<java.lang.Integer> ipv6AddressCount)
- Parameters:
ipv6AddressCount- Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.- Returns:
- builder
-
ipv6AddressCount
public SpotInstanceRequestState.Builder ipv6AddressCount(java.lang.Integer ipv6AddressCount)
- Parameters:
ipv6AddressCount- Number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.- Returns:
- builder
-
ipv6Addresses
public SpotInstanceRequestState.Builder ipv6Addresses(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> ipv6Addresses)
- Parameters:
ipv6Addresses- Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface- Returns:
- builder
-
ipv6Addresses
public SpotInstanceRequestState.Builder ipv6Addresses(java.util.List<java.lang.String> ipv6Addresses)
- Parameters:
ipv6Addresses- Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface- Returns:
- builder
-
ipv6Addresses
public SpotInstanceRequestState.Builder ipv6Addresses(java.lang.String... ipv6Addresses)
- Parameters:
ipv6Addresses- Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface- Returns:
- builder
-
keyName
public SpotInstanceRequestState.Builder keyName(@Nullable com.pulumi.core.Output<java.lang.String> keyName)
- Parameters:
keyName- Key name of the Key Pair to use for the instance; which can be managed using the `aws.ec2.KeyPair` resource.- Returns:
- builder
-
keyName
public SpotInstanceRequestState.Builder keyName(java.lang.String keyName)
- Parameters:
keyName- Key name of the Key Pair to use for the instance; which can be managed using the `aws.ec2.KeyPair` resource.- Returns:
- builder
-
launchGroup
public SpotInstanceRequestState.Builder launchGroup(@Nullable com.pulumi.core.Output<java.lang.String> launchGroup)
- Parameters:
launchGroup- A launch group is a group of spot instances that launch together and terminate together. If left empty instances are launched and terminated individually.- Returns:
- builder
-
launchGroup
public SpotInstanceRequestState.Builder launchGroup(java.lang.String launchGroup)
- Parameters:
launchGroup- A launch group is a group of spot instances that launch together and terminate together. If left empty instances are launched and terminated individually.- Returns:
- builder
-
launchTemplate
public SpotInstanceRequestState.Builder launchTemplate(@Nullable com.pulumi.core.Output<SpotInstanceRequestLaunchTemplateArgs> launchTemplate)
- Parameters:
launchTemplate- Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.- Returns:
- builder
-
launchTemplate
public SpotInstanceRequestState.Builder launchTemplate(SpotInstanceRequestLaunchTemplateArgs launchTemplate)
- Parameters:
launchTemplate- Specifies a Launch Template to configure the instance. Parameters configured on this resource will override the corresponding parameters in the Launch Template. See Launch Template Specification below for more details.- Returns:
- builder
-
maintenanceOptions
public SpotInstanceRequestState.Builder maintenanceOptions(@Nullable com.pulumi.core.Output<SpotInstanceRequestMaintenanceOptionsArgs> maintenanceOptions)
- Parameters:
maintenanceOptions- Maintenance and recovery options for the instance. See Maintenance Options below for more details.- Returns:
- builder
-
maintenanceOptions
public SpotInstanceRequestState.Builder maintenanceOptions(SpotInstanceRequestMaintenanceOptionsArgs maintenanceOptions)
- Parameters:
maintenanceOptions- Maintenance and recovery options for the instance. See Maintenance Options below for more details.- Returns:
- builder
-
metadataOptions
public SpotInstanceRequestState.Builder metadataOptions(@Nullable com.pulumi.core.Output<SpotInstanceRequestMetadataOptionsArgs> metadataOptions)
- Parameters:
metadataOptions- Customize the metadata options of the instance. See Metadata Options below for more details.- Returns:
- builder
-
metadataOptions
public SpotInstanceRequestState.Builder metadataOptions(SpotInstanceRequestMetadataOptionsArgs metadataOptions)
- Parameters:
metadataOptions- Customize the metadata options of the instance. See Metadata Options below for more details.- Returns:
- builder
-
monitoring
public SpotInstanceRequestState.Builder monitoring(@Nullable com.pulumi.core.Output<java.lang.Boolean> monitoring)
- Parameters:
monitoring- If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0)- Returns:
- builder
-
monitoring
public SpotInstanceRequestState.Builder monitoring(java.lang.Boolean monitoring)
- Parameters:
monitoring- If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0)- Returns:
- builder
-
networkInterfaces
@Deprecated public SpotInstanceRequestState.Builder networkInterfaces(@Nullable com.pulumi.core.Output<java.util.List<SpotInstanceRequestNetworkInterfaceArgs>> networkInterfaces)
Deprecated.network_interface is deprecated. To specify the primary network interface, use primaryNetworkInterface instead. To attach additional network interfaces, use the aws.ec2.NetworkInterfaceAttachment resource.- Parameters:
networkInterfaces- Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.- Returns:
- builder
-
networkInterfaces
@Deprecated public SpotInstanceRequestState.Builder networkInterfaces(java.util.List<SpotInstanceRequestNetworkInterfaceArgs> networkInterfaces)
Deprecated.network_interface is deprecated. To specify the primary network interface, use primaryNetworkInterface instead. To attach additional network interfaces, use the aws.ec2.NetworkInterfaceAttachment resource.- Parameters:
networkInterfaces- Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.- Returns:
- builder
-
networkInterfaces
@Deprecated public SpotInstanceRequestState.Builder networkInterfaces(SpotInstanceRequestNetworkInterfaceArgs... networkInterfaces)
Deprecated.network_interface is deprecated. To specify the primary network interface, use primaryNetworkInterface instead. To attach additional network interfaces, use the aws.ec2.NetworkInterfaceAttachment resource.- Parameters:
networkInterfaces- Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.- Returns:
- builder
-
outpostArn
public SpotInstanceRequestState.Builder outpostArn(@Nullable com.pulumi.core.Output<java.lang.String> outpostArn)
-
outpostArn
public SpotInstanceRequestState.Builder outpostArn(java.lang.String outpostArn)
-
passwordData
public SpotInstanceRequestState.Builder passwordData(@Nullable com.pulumi.core.Output<java.lang.String> passwordData)
-
passwordData
public SpotInstanceRequestState.Builder passwordData(java.lang.String passwordData)
-
placementGroup
public SpotInstanceRequestState.Builder placementGroup(@Nullable com.pulumi.core.Output<java.lang.String> placementGroup)
- Parameters:
placementGroup- Placement Group to start the instance in. Conflicts with `placementGroupId`.- Returns:
- builder
-
placementGroup
public SpotInstanceRequestState.Builder placementGroup(java.lang.String placementGroup)
- Parameters:
placementGroup- Placement Group to start the instance in. Conflicts with `placementGroupId`.- Returns:
- builder
-
placementGroupId
public SpotInstanceRequestState.Builder placementGroupId(@Nullable com.pulumi.core.Output<java.lang.String> placementGroupId)
- Parameters:
placementGroupId- Placement Group ID to start the instance in. Conflicts with `placementGroup`.- Returns:
- builder
-
placementGroupId
public SpotInstanceRequestState.Builder placementGroupId(java.lang.String placementGroupId)
- Parameters:
placementGroupId- Placement Group ID to start the instance in. Conflicts with `placementGroup`.- Returns:
- builder
-
placementPartitionNumber
public SpotInstanceRequestState.Builder placementPartitionNumber(@Nullable com.pulumi.core.Output<java.lang.Integer> placementPartitionNumber)
- Parameters:
placementPartitionNumber- Number of the partition the instance is in. Valid only if the `aws.ec2.PlacementGroup` resource's `strategy` argument is set to `"partition"`.- Returns:
- builder
-
placementPartitionNumber
public SpotInstanceRequestState.Builder placementPartitionNumber(java.lang.Integer placementPartitionNumber)
- Parameters:
placementPartitionNumber- Number of the partition the instance is in. Valid only if the `aws.ec2.PlacementGroup` resource's `strategy` argument is set to `"partition"`.- Returns:
- builder
-
primaryNetworkInterfaceId
public SpotInstanceRequestState.Builder primaryNetworkInterfaceId(@Nullable com.pulumi.core.Output<java.lang.String> primaryNetworkInterfaceId)
-
primaryNetworkInterfaceId
public SpotInstanceRequestState.Builder primaryNetworkInterfaceId(java.lang.String primaryNetworkInterfaceId)
-
primaryNetworkInterfaces
public SpotInstanceRequestState.Builder primaryNetworkInterfaces(@Nullable com.pulumi.core.Output<java.util.List<SpotInstanceRequestPrimaryNetworkInterfaceArgs>> primaryNetworkInterfaces)
- Parameters:
primaryNetworkInterfaces- The primary network interface. See Primary Network Interface below.- Returns:
- builder
-
primaryNetworkInterfaces
public SpotInstanceRequestState.Builder primaryNetworkInterfaces(java.util.List<SpotInstanceRequestPrimaryNetworkInterfaceArgs> primaryNetworkInterfaces)
- Parameters:
primaryNetworkInterfaces- The primary network interface. See Primary Network Interface below.- Returns:
- builder
-
primaryNetworkInterfaces
public SpotInstanceRequestState.Builder primaryNetworkInterfaces(SpotInstanceRequestPrimaryNetworkInterfaceArgs... primaryNetworkInterfaces)
- Parameters:
primaryNetworkInterfaces- The primary network interface. See Primary Network Interface below.- Returns:
- builder
-
privateDns
public SpotInstanceRequestState.Builder privateDns(@Nullable com.pulumi.core.Output<java.lang.String> privateDns)
- Parameters:
privateDns- The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC- Returns:
- builder
-
privateDns
public SpotInstanceRequestState.Builder privateDns(java.lang.String privateDns)
- Parameters:
privateDns- The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC- Returns:
- builder
-
privateDnsNameOptions
public SpotInstanceRequestState.Builder privateDnsNameOptions(@Nullable com.pulumi.core.Output<SpotInstanceRequestPrivateDnsNameOptionsArgs> privateDnsNameOptions)
- Parameters:
privateDnsNameOptions- Options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.- Returns:
- builder
-
privateDnsNameOptions
public SpotInstanceRequestState.Builder privateDnsNameOptions(SpotInstanceRequestPrivateDnsNameOptionsArgs privateDnsNameOptions)
- Parameters:
privateDnsNameOptions- Options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.- Returns:
- builder
-
privateIp
public SpotInstanceRequestState.Builder privateIp(@Nullable com.pulumi.core.Output<java.lang.String> privateIp)
- Parameters:
privateIp- Private IP address to associate with the instance in a VPC.- Returns:
- builder
-
privateIp
public SpotInstanceRequestState.Builder privateIp(java.lang.String privateIp)
- Parameters:
privateIp- Private IP address to associate with the instance in a VPC.- Returns:
- builder
-
publicDns
public SpotInstanceRequestState.Builder publicDns(@Nullable com.pulumi.core.Output<java.lang.String> publicDns)
- Parameters:
publicDns- The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC- Returns:
- builder
-
publicDns
public SpotInstanceRequestState.Builder publicDns(java.lang.String publicDns)
- Parameters:
publicDns- The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC- Returns:
- builder
-
publicIp
public SpotInstanceRequestState.Builder publicIp(@Nullable com.pulumi.core.Output<java.lang.String> publicIp)
- Parameters:
publicIp- The public IP address assigned to the instance, if applicable.- Returns:
- builder
-
publicIp
public SpotInstanceRequestState.Builder publicIp(java.lang.String publicIp)
- Parameters:
publicIp- The public IP address assigned to the instance, if applicable.- Returns:
- builder
-
region
public SpotInstanceRequestState.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 SpotInstanceRequestState.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
-
rootBlockDevice
public SpotInstanceRequestState.Builder rootBlockDevice(@Nullable com.pulumi.core.Output<SpotInstanceRequestRootBlockDeviceArgs> rootBlockDevice)
- Parameters:
rootBlockDevice- Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.- Returns:
- builder
-
rootBlockDevice
public SpotInstanceRequestState.Builder rootBlockDevice(SpotInstanceRequestRootBlockDeviceArgs rootBlockDevice)
- Parameters:
rootBlockDevice- Configuration block to customize details about the root block device of the instance. See Block Devices below for details. When accessing this as an attribute reference, it is a list containing one object.- Returns:
- builder
-
secondaryNetworkInterfaces
public SpotInstanceRequestState.Builder secondaryNetworkInterfaces(@Nullable com.pulumi.core.Output<java.util.List<SpotInstanceRequestSecondaryNetworkInterfaceArgs>> secondaryNetworkInterfaces)
- Parameters:
secondaryNetworkInterfaces- One or more secondary network interfaces to attach to the instance at launch time. See Secondary Network Interface below for more details.- Returns:
- builder
-
secondaryNetworkInterfaces
public SpotInstanceRequestState.Builder secondaryNetworkInterfaces(java.util.List<SpotInstanceRequestSecondaryNetworkInterfaceArgs> secondaryNetworkInterfaces)
- Parameters:
secondaryNetworkInterfaces- One or more secondary network interfaces to attach to the instance at launch time. See Secondary Network Interface below for more details.- Returns:
- builder
-
secondaryNetworkInterfaces
public SpotInstanceRequestState.Builder secondaryNetworkInterfaces(SpotInstanceRequestSecondaryNetworkInterfaceArgs... secondaryNetworkInterfaces)
- Parameters:
secondaryNetworkInterfaces- One or more secondary network interfaces to attach to the instance at launch time. See Secondary Network Interface below for more details.- Returns:
- builder
-
secondaryPrivateIps
public SpotInstanceRequestState.Builder secondaryPrivateIps(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> secondaryPrivateIps)
- Parameters:
secondaryPrivateIps- List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a `networkInterface` block. Refer to the [Elastic network interfaces documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) to see the maximum number of private IP addresses allowed per instance type.- Returns:
- builder
-
secondaryPrivateIps
public SpotInstanceRequestState.Builder secondaryPrivateIps(java.util.List<java.lang.String> secondaryPrivateIps)
- Parameters:
secondaryPrivateIps- List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a `networkInterface` block. Refer to the [Elastic network interfaces documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) to see the maximum number of private IP addresses allowed per instance type.- Returns:
- builder
-
secondaryPrivateIps
public SpotInstanceRequestState.Builder secondaryPrivateIps(java.lang.String... secondaryPrivateIps)
- Parameters:
secondaryPrivateIps- List of secondary private IPv4 addresses to assign to the instance's primary network interface (eth0) in a VPC. Can only be assigned to the primary network interface (eth0) attached at instance creation, not a pre-existing network interface i.e., referenced in a `networkInterface` block. Refer to the [Elastic network interfaces documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) to see the maximum number of private IP addresses allowed per instance type.- Returns:
- builder
-
securityGroups
public SpotInstanceRequestState.Builder securityGroups(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroups)
- Parameters:
securityGroups- List of security group names to associate with. > **NOTE:** If you are creating Instances in a VPC, use `vpcSecurityGroupIds` instead.- Returns:
- builder
-
securityGroups
public SpotInstanceRequestState.Builder securityGroups(java.util.List<java.lang.String> securityGroups)
- Parameters:
securityGroups- List of security group names to associate with. > **NOTE:** If you are creating Instances in a VPC, use `vpcSecurityGroupIds` instead.- Returns:
- builder
-
securityGroups
public SpotInstanceRequestState.Builder securityGroups(java.lang.String... securityGroups)
- Parameters:
securityGroups- List of security group names to associate with. > **NOTE:** If you are creating Instances in a VPC, use `vpcSecurityGroupIds` instead.- Returns:
- builder
-
sourceDestCheck
public SpotInstanceRequestState.Builder sourceDestCheck(@Nullable com.pulumi.core.Output<java.lang.Boolean> sourceDestCheck)
- Parameters:
sourceDestCheck- Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true.- Returns:
- builder
-
sourceDestCheck
public SpotInstanceRequestState.Builder sourceDestCheck(java.lang.Boolean sourceDestCheck)
- Parameters:
sourceDestCheck- Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true.- Returns:
- builder
-
spotBidStatus
public SpotInstanceRequestState.Builder spotBidStatus(@Nullable com.pulumi.core.Output<java.lang.String> spotBidStatus)
- Parameters:
spotBidStatus- The current [bid status](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) of the Spot Instance Request.- Returns:
- builder
-
spotBidStatus
public SpotInstanceRequestState.Builder spotBidStatus(java.lang.String spotBidStatus)
- Parameters:
spotBidStatus- The current [bid status](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html) of the Spot Instance Request.- Returns:
- builder
-
spotInstanceId
public SpotInstanceRequestState.Builder spotInstanceId(@Nullable com.pulumi.core.Output<java.lang.String> spotInstanceId)
- Parameters:
spotInstanceId- The Instance ID (if any) that is currently fulfilling the Spot Instance request.- Returns:
- builder
-
spotInstanceId
public SpotInstanceRequestState.Builder spotInstanceId(java.lang.String spotInstanceId)
- Parameters:
spotInstanceId- The Instance ID (if any) that is currently fulfilling the Spot Instance request.- Returns:
- builder
-
spotPrice
public SpotInstanceRequestState.Builder spotPrice(@Nullable com.pulumi.core.Output<java.lang.String> spotPrice)
- Parameters:
spotPrice- The maximum price to request on the spot market.- Returns:
- builder
-
spotPrice
public SpotInstanceRequestState.Builder spotPrice(java.lang.String spotPrice)
- Parameters:
spotPrice- The maximum price to request on the spot market.- Returns:
- builder
-
spotRequestState
public SpotInstanceRequestState.Builder spotRequestState(@Nullable com.pulumi.core.Output<java.lang.String> spotRequestState)
- Parameters:
spotRequestState- The current [request state](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#creating-spot-request-status) of the Spot Instance Request.- Returns:
- builder
-
spotRequestState
public SpotInstanceRequestState.Builder spotRequestState(java.lang.String spotRequestState)
- Parameters:
spotRequestState- The current [request state](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#creating-spot-request-status) of the Spot Instance Request.- Returns:
- builder
-
spotType
public SpotInstanceRequestState.Builder spotType(@Nullable com.pulumi.core.Output<java.lang.String> spotType)
- Parameters:
spotType- If set to `one-time`, after the instance is terminated, the spot request will be closed.- Returns:
- builder
-
spotType
public SpotInstanceRequestState.Builder spotType(java.lang.String spotType)
- Parameters:
spotType- If set to `one-time`, after the instance is terminated, the spot request will be closed.- Returns:
- builder
-
subnetId
public SpotInstanceRequestState.Builder subnetId(@Nullable com.pulumi.core.Output<java.lang.String> subnetId)
- Parameters:
subnetId- VPC Subnet ID to launch in.- Returns:
- builder
-
subnetId
public SpotInstanceRequestState.Builder subnetId(java.lang.String subnetId)
- Parameters:
subnetId- VPC Subnet ID to launch in.- Returns:
- builder
-
tags
public SpotInstanceRequestState.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. Note that these tags apply to the instance and not block storage devices. 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 SpotInstanceRequestState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the resource. Note that these tags apply to the instance and not block storage devices. 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 SpotInstanceRequestState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public SpotInstanceRequestState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tenancy
public SpotInstanceRequestState.Builder tenancy(@Nullable com.pulumi.core.Output<java.lang.String> tenancy)
- Parameters:
tenancy- Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of `dedicated` runs on single-tenant hardware. The `host` tenancy is not supported for the import-instance command. Valid values are `default`, `dedicated`, and `host`.- Returns:
- builder
-
tenancy
public SpotInstanceRequestState.Builder tenancy(java.lang.String tenancy)
- Parameters:
tenancy- Tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of `dedicated` runs on single-tenant hardware. The `host` tenancy is not supported for the import-instance command. Valid values are `default`, `dedicated`, and `host`.- Returns:
- builder
-
userData
public SpotInstanceRequestState.Builder userData(@Nullable com.pulumi.core.Output<java.lang.String> userData)
- Parameters:
userData- User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see `userDataBase64` instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the `userDataReplaceOnChange` is set then updates to this field will trigger a destroy and recreate of the EC2 instance.- Returns:
- builder
-
userData
public SpotInstanceRequestState.Builder userData(java.lang.String userData)
- Parameters:
userData- User data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see `userDataBase64` instead. Updates to this field will trigger a stop/start of the EC2 instance by default. If the `userDataReplaceOnChange` is set then updates to this field will trigger a destroy and recreate of the EC2 instance.- Returns:
- builder
-
userDataBase64
public SpotInstanceRequestState.Builder userDataBase64(@Nullable com.pulumi.core.Output<java.lang.String> userDataBase64)
- Parameters:
userDataBase64- Can be used instead of `userData` to pass base64-encoded binary data directly. Use this instead of `userData` whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the `userDataReplaceOnChange` is set then updates to this field will trigger a destroy and recreate of the EC2 instance.- Returns:
- builder
-
userDataBase64
public SpotInstanceRequestState.Builder userDataBase64(java.lang.String userDataBase64)
- Parameters:
userDataBase64- Can be used instead of `userData` to pass base64-encoded binary data directly. Use this instead of `userData` whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption. Updates to this field will trigger a stop/start of the EC2 instance by default. If the `userDataReplaceOnChange` is set then updates to this field will trigger a destroy and recreate of the EC2 instance.- Returns:
- builder
-
userDataReplaceOnChange
public SpotInstanceRequestState.Builder userDataReplaceOnChange(@Nullable com.pulumi.core.Output<java.lang.Boolean> userDataReplaceOnChange)
- Parameters:
userDataReplaceOnChange- When used in combination with `userData` or `userDataBase64` will trigger a destroy and recreate of the EC2 instance when set to `true`. Defaults to `false` if not set.- Returns:
- builder
-
userDataReplaceOnChange
public SpotInstanceRequestState.Builder userDataReplaceOnChange(java.lang.Boolean userDataReplaceOnChange)
- Parameters:
userDataReplaceOnChange- When used in combination with `userData` or `userDataBase64` will trigger a destroy and recreate of the EC2 instance when set to `true`. Defaults to `false` if not set.- Returns:
- builder
-
validFrom
public SpotInstanceRequestState.Builder validFrom(@Nullable com.pulumi.core.Output<java.lang.String> validFrom)
- Parameters:
validFrom- The start date and time of the request, in UTC [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.- Returns:
- builder
-
validFrom
public SpotInstanceRequestState.Builder validFrom(java.lang.String validFrom)
- Parameters:
validFrom- The start date and time of the request, in UTC [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.- Returns:
- builder
-
validUntil
public SpotInstanceRequestState.Builder validUntil(@Nullable com.pulumi.core.Output<java.lang.String> validUntil)
- Parameters:
validUntil- The end date and time of the request, in UTC [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date.- Returns:
- builder
-
validUntil
public SpotInstanceRequestState.Builder validUntil(java.lang.String validUntil)
- Parameters:
validUntil- The end date and time of the request, in UTC [RFC3339](https://tools.ietf.org/html/rfc3339#section-5.8) format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. The default end date is 7 days from the current date.- Returns:
- builder
-
volumeTags
public SpotInstanceRequestState.Builder volumeTags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> volumeTags)
- Parameters:
volumeTags- Map of tags to assign, at instance-creation time, to root and EBS volumes. > **NOTE:** Do not use `volumeTags` if you plan to manage block device tags outside the `aws.ec2.Instance` configuration, such as using `tags` in an `aws.ebs.Volume` resource attached via `aws.ec2.VolumeAttachment`. Doing so will result in resource cycling and inconsistent behavior.- Returns:
- builder
-
volumeTags
public SpotInstanceRequestState.Builder volumeTags(java.util.Map<java.lang.String,java.lang.String> volumeTags)
- Parameters:
volumeTags- Map of tags to assign, at instance-creation time, to root and EBS volumes. > **NOTE:** Do not use `volumeTags` if you plan to manage block device tags outside the `aws.ec2.Instance` configuration, such as using `tags` in an `aws.ebs.Volume` resource attached via `aws.ec2.VolumeAttachment`. Doing so will result in resource cycling and inconsistent behavior.- Returns:
- builder
-
vpcSecurityGroupIds
public SpotInstanceRequestState.Builder vpcSecurityGroupIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> vpcSecurityGroupIds)
- Parameters:
vpcSecurityGroupIds- List of security group IDs to associate with.- Returns:
- builder
-
vpcSecurityGroupIds
public SpotInstanceRequestState.Builder vpcSecurityGroupIds(java.util.List<java.lang.String> vpcSecurityGroupIds)
- Parameters:
vpcSecurityGroupIds- List of security group IDs to associate with.- Returns:
- builder
-
vpcSecurityGroupIds
public SpotInstanceRequestState.Builder vpcSecurityGroupIds(java.lang.String... vpcSecurityGroupIds)
- Parameters:
vpcSecurityGroupIds- List of security group IDs to associate with.- Returns:
- builder
-
waitForFulfillment
public SpotInstanceRequestState.Builder waitForFulfillment(@Nullable com.pulumi.core.Output<java.lang.Boolean> waitForFulfillment)
- Parameters:
waitForFulfillment- If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.- Returns:
- builder
-
waitForFulfillment
public SpotInstanceRequestState.Builder waitForFulfillment(java.lang.Boolean waitForFulfillment)
- Parameters:
waitForFulfillment- If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.- Returns:
- builder
-
build
public SpotInstanceRequestState build()
-
-