Class SpotInstanceRequestState
Inheritance
System.Object
SpotInstanceRequestState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Pulumi.Aws.dll
Syntax
public sealed class SpotInstanceRequestState : ResourceArgs
Constructors
View Source
SpotInstanceRequestState()
Declaration
public SpotInstanceRequestState()
Properties
View Source
Ami
The AMI to use for the instance.
Declaration
public Input<string> Ami { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Arn
Declaration
public Input<string> Arn { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
AssociatePublicIpAddress
Associate a public ip address with an instance in a VPC. Boolean value.
Declaration
public Input<bool> AssociatePublicIpAddress { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
AvailabilityZone
The AZ to start the instance in.
Declaration
public Input<string> AvailabilityZone { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
BlockDurationMinutes
The required duration for the Spot instances, in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).
The duration period starts as soon as your Spot instance receives its instance ID. At the end of the duration period, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
Note that you can't specify an Availability Zone group or a launch group if you specify a duration.
Declaration
public Input<int> BlockDurationMinutes { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
CpuCoreCount
Sets the number of CPU cores for an instance. This option is
only supported on creation of instance type that support CPU Options
CPU Cores and Threads Per CPU Core Per Instance Type - specifying this option for unsupported instance types will return an error from the EC2 API.
Declaration
public Input<int> CpuCoreCount { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
CpuThreadsPerCore
If set to to 1, hyperthreading is disabled on the launched instance. Defaults to 2 if not set. See Optimizing CPU Options for more information.
Declaration
public Input<int> CpuThreadsPerCore { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
CreditSpecification
Customize the credit specification of the instance. See Credit Specification below for more details.
Declaration
public Input<SpotInstanceRequestCreditSpecificationGetArgs> CreditSpecification { get; set; }
Property Value
View Source
DisableApiTermination
Declaration
public Input<bool> DisableApiTermination { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
EbsBlockDevices
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.
Declaration
public InputList<SpotInstanceRequestEbsBlockDeviceGetArgs> EbsBlockDevices { get; set; }
Property Value
View Source
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 of the AWS User Guide for more information.
Declaration
public Input<bool> EbsOptimized { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
EphemeralBlockDevices
Customize Ephemeral (also known as
"Instance Store") volumes on the instance. See Block Devices below for details.
Declaration
public InputList<SpotInstanceRequestEphemeralBlockDeviceGetArgs> EphemeralBlockDevices { get; set; }
Property Value
View Source
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 password_data attribute. See GetPasswordData for more information.
Declaration
public Input<bool> GetPasswordData { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
Hibernation
If true, the launched EC2 instance will support hibernation.
Declaration
public Input<bool> Hibernation { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
HostId
The 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.
Declaration
public Input<string> HostId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
IamInstanceProfile
The 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, notably iam:PassRole.
Declaration
public Input<string> IamInstanceProfile { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
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 for more information.
Declaration
public Input<string> InstanceInitiatedShutdownBehavior { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
InstanceInterruptionBehaviour
Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate as this is the current AWS behaviour.
Declaration
public Input<string> InstanceInterruptionBehaviour { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
InstanceState
Declaration
public Input<string> InstanceState { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
InstanceType
The type of instance to start. Updates to this field will trigger a stop/start of the EC2 instance.
Declaration
public Input<string> InstanceType { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Ipv6AddressCount
A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
Declaration
public Input<int> Ipv6AddressCount { get; set; }
Property Value
| Type |
Description |
| Input<System.Int32> |
|
View Source
Ipv6Addresses
Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface
Declaration
public InputList<string> Ipv6Addresses { get; set; }
Property Value
View Source
KeyName
The key name of the Key Pair to use for the instance; which can be managed using the aws.ec2.KeyPair resource.
Declaration
public Input<string> KeyName { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
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.
Declaration
public Input<string> LaunchGroup { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
Customize the metadata options of the instance. See Metadata Options below for more details.
Declaration
public Input<SpotInstanceRequestMetadataOptionsGetArgs> MetadataOptions { get; set; }
Property Value
View Source
Monitoring
If true, the launched EC2 instance will have detailed monitoring enabled. (Available since v0.6.0)
Declaration
public Input<bool> Monitoring { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
NetworkInterfaces
Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
Declaration
public InputList<SpotInstanceRequestNetworkInterfaceGetArgs> NetworkInterfaces { get; set; }
Property Value
View Source
OutpostArn
Declaration
public Input<string> OutpostArn { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
PasswordData
Declaration
public Input<string> PasswordData { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
PlacementGroup
The Placement Group to start the instance in.
Declaration
public Input<string> PlacementGroup { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
PrimaryNetworkInterfaceId
Declaration
public Input<string> PrimaryNetworkInterfaceId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
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
Declaration
public Input<string> PrivateDns { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
PrivateIp
Private IP address to associate with the
instance in a VPC.
Declaration
public Input<string> PrivateIp { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
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
Declaration
public Input<string> PublicDns { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
PublicIp
The public IP address assigned to the instance, if applicable.
Declaration
public Input<string> PublicIp { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
RootBlockDevice
Customize details about the root block
device of the instance. See Block Devices below for details.
Declaration
public Input<SpotInstanceRequestRootBlockDeviceGetArgs> RootBlockDevice { get; set; }
Property Value
View Source
SecurityGroups
A list of security group names (EC2-Classic) or IDs (default VPC) to associate with.
Declaration
public InputList<string> SecurityGroups { get; set; }
Property Value
View Source
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.
Declaration
public Input<bool> SourceDestCheck { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|
View Source
SpotBidStatus
The current bid
status
of the Spot Instance Request.
spot_request_state The current request
state
of the Spot Instance Request.
Declaration
public Input<string> SpotBidStatus { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SpotInstanceId
The Instance ID (if any) that is currently fulfilling
the Spot Instance request.
Declaration
public Input<string> SpotInstanceId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SpotPrice
The maximum price to request on the spot market.
Declaration
public Input<string> SpotPrice { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SpotRequestState
Declaration
public Input<string> SpotRequestState { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SpotType
If set to one-time, after
the instance is terminated, the spot request will be closed.
Declaration
public Input<string> SpotType { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
SubnetId
The VPC Subnet ID to launch in.
Declaration
public Input<string> SubnetId { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
A map of tags to assign to the resource.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type |
Description |
| InputMap<System.Object> |
|
View Source
Tenancy
The 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.
Declaration
public Input<string> Tenancy { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
UserData
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
Declaration
public Input<string> UserData { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
UserDataBase64
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data 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.
Declaration
public Input<string> UserDataBase64 { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ValidFrom
The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
Declaration
public Input<string> ValidFrom { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
ValidUntil
The end date and time of the request, in UTC RFC3339 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.
Declaration
public Input<string> ValidUntil { get; set; }
Property Value
| Type |
Description |
| Input<System.String> |
|
View Source
A map of tags to assign to the devices created by the instance at launch time.
Declaration
public InputMap<object> VolumeTags { get; set; }
Property Value
| Type |
Description |
| InputMap<System.Object> |
|
View Source
VpcSecurityGroupIds
A list of security group IDs to associate with.
Declaration
public InputList<string> VpcSecurityGroupIds { get; set; }
Property Value
View Source
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.
Declaration
public Input<bool> WaitForFulfillment { get; set; }
Property Value
| Type |
Description |
| Input<System.Boolean> |
|