Describes the specified Spot Instance requests.
You can use DescribeSpotInstanceRequests
to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled
, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot
.
We recommend that you set MaxResults
to a value between 5 and 1000 to limit the number of items returned. This paginates the output, which makes the list more manageable and returns the items faster. If the list of items exceeds your MaxResults
value, then that number of items is returned along with a NextToken
value that can be passed to a subsequent DescribeSpotInstanceRequests
request to retrieve the remaining items.
Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.
See also: AWS API Documentation
describe-spot-instance-requests
is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate
argument.
When using --output text
and the --query
argument on a paginated response, the --query
argument must extract data from the results of the following query expressions: SpotInstanceRequests
describe-spot-instance-requests
[--dry-run | --no-dry-run]
[--spot-instance-request-ids <value>]
[--filters <value>]
[--cli-input-json | --cli-input-yaml]
[--starting-token <value>]
[--page-size <value>]
[--max-items <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
--dry-run
| --no-dry-run
(boolean)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.
--spot-instance-request-ids
(list)
The IDs of the Spot Instance requests.
(string)
Syntax:
"string" "string" ...
--filters
(list)
The filters.
availability-zone-group
- The Availability Zone group.create-time
- The time stamp when the Spot Instance request was created.fault-code
- The fault code related to the request.fault-message
- The fault message related to the request.instance-id
- The ID of the instance that fulfilled the request.launch-group
- The Spot Instance launch group.launch.block-device-mapping.delete-on-termination
- Indicates whether the EBS volume is deleted on instance termination.launch.block-device-mapping.device-name
- The device name for the volume in the block device mapping (for example,/dev/sdh
orxvdh
).launch.block-device-mapping.snapshot-id
- The ID of the snapshot for the EBS volume.launch.block-device-mapping.volume-size
- The size of the EBS volume, in GiB.launch.block-device-mapping.volume-type
- The type of EBS volume:gp2
orgp3
for General Purpose SSD,io1
orio2
for Provisioned IOPS SSD,st1
for Throughput Optimized HDD,sc1
for Cold HDD, orstandard
for Magnetic.launch.group-id
- The ID of the security group for the instance.launch.group-name
- The name of the security group for the instance.launch.image-id
- The ID of the AMI.launch.instance-type
- The type of instance (for example,m3.medium
).launch.kernel-id
- The kernel ID.launch.key-name
- The name of the key pair the instance launched with.launch.monitoring-enabled
- Whether detailed monitoring is enabled for the Spot Instance.launch.ramdisk-id
- The RAM disk ID.launched-availability-zone
- The Availability Zone in which the request is launched.network-interface.addresses.primary
- Indicates whether the IP address is the primary private IP address.network-interface.delete-on-termination
- Indicates whether the network interface is deleted when the instance is terminated.network-interface.description
- A description of the network interface.network-interface.device-index
- The index of the device for the network interface attachment on the instance.network-interface.group-id
- The ID of the security group associated with the network interface.network-interface.network-interface-id
- The ID of the network interface.network-interface.private-ip-address
- The primary private IP address of the network interface.network-interface.subnet-id
- The ID of the subnet for the instance.product-description
- The product description associated with the instance (Linux/UNIX
|Windows
).spot-instance-request-id
- The Spot Instance request ID.spot-price
- The maximum hourly price for any Spot Instance launched to fulfill the request.state
- The state of the Spot Instance request (open
|active
|closed
|cancelled
|failed
). Spot request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see Spot request status in the Amazon EC2 User Guide .status-code
- The short code describing the most recent evaluation of your Spot Instance request.status-message
- The message explaining the status of the Spot Instance request.tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.type
- The type of Spot Instance request (one-time
|persistent
).valid-from
- The start date of the request.valid-until
- The end date of the request.(structure)
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
If you specify multiple filters, the filters are joined with an
AND
, and the request returns only results that match all of the specified filters.Name -> (string)
The name of the filter. Filter names are case-sensitive.Values -> (list)
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an
OR
, and the request returns all results that match any of the specified values.(string)
Shorthand Syntax:
Name=string,Values=string,string ...
JSON Syntax:
[
{
"Name": "string",
"Values": ["string", ...]
}
...
]
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--starting-token
(string)
A token to specify where to start paginating. This is the
NextToken
from a previously truncated response.For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--page-size
(integer)
The size of each page to get in the AWS service call. This does not affect the number of items returned in the command’s output. Setting a smaller page size results in more calls to the AWS service, retrieving fewer items in each call. This can help prevent the AWS service calls from timing out.
For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--max-items
(integer)
The total number of items to return in the command’s output. If the total number of items available is more than the value specified, a
NextToken
is provided in the command’s output. To resume pagination, provide theNextToken
value in thestarting-token
argument of a subsequent command. Do not use theNextToken
response element directly outside of the AWS CLI.For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command’s default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format
(string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb://
will always be treated as binary and use the file contents directly regardless of the cli-binary-format
setting. When using file://
the file contents will need to properly formatted for the configured cli-binary-format
.
--no-cli-pager
(boolean)
Disable cli pager for output.
--cli-auto-prompt
(boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt
(boolean)
Disable automatically prompt for CLI input parameters.
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
Example 1: To describe a Spot Instance request
The following describe-spot-instance-requests
example describes the specified Spot Instance request.
aws ec2 describe-spot-instance-requests \
--spot-instance-request-ids sir-08b93456
Output:
{
"SpotInstanceRequests": [
{
"CreateTime": "2018-04-30T18:14:55.000Z",
"InstanceId": "i-1234567890abcdef1",
"LaunchSpecification": {
"InstanceType": "t2.micro",
"ImageId": "ami-003634241a8fcdec0",
"KeyName": "my-key-pair",
"SecurityGroups": [
{
"GroupName": "default",
"GroupId": "sg-e38f24a7"
}
],
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sda1",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-0e54a519c999adbbd",
"VolumeSize": 8,
"VolumeType": "standard",
"Encrypted": false
}
}
],
"NetworkInterfaces": [
{
"DeleteOnTermination": true,
"DeviceIndex": 0,
"SubnetId": "subnet-049df61146c4d7901"
}
],
"Placement": {
"AvailabilityZone": "us-east-2b",
"Tenancy": "default"
},
"Monitoring": {
"Enabled": false
}
},
"LaunchedAvailabilityZone": "us-east-2b",
"ProductDescription": "Linux/UNIX",
"SpotInstanceRequestId": "sir-08b93456",
"SpotPrice": "0.010000"
"State": "active",
"Status": {
"Code": "fulfilled",
"Message": "Your Spot request is fulfilled.",
"UpdateTime": "2018-04-30T18:16:21.000Z"
},
"Tags": [],
"Type": "one-time",
"InstanceInterruptionBehavior": "terminate"
}
]
}
Example 2: To describe Spot Instance requests based on filters
The following describe-spot-instance-requests
example uses filters to scope the results to Spot Instance requests with the specified instance type in the specified Availability Zone. The example uses the --query
parameter to display only the instance IDs.
aws ec2 describe-spot-instance-requests \
--filters Name=launch.instance-type,Values=m3.medium Name=launched-availability-zone,Values=us-east-2a \
--query "SpotInstanceRequests[*].[InstanceId]" \
--output text
Output:
i-057750d42936e468a
i-001efd250faaa6ffa
i-027552a73f021f3bd
...
For additional examples using filters, see Listing and filtering your resources in the Amazon Elastic Compute Cloud User Guide.
Example 3: To describe Spot Instance requests based on tags
The following describe-spot-instance-requests
example uses tag filters to scope the results to Spot Instance requests that have the tag cost-center=cc123
.
aws ec2 describe-spot-instance-requests \
--filters Name=tag:cost-center,Values=cc123
For an example of the output for describe-spot-instance-requests
, see Example 1.
For additional examples using tag filters, see Working with tags in the Amazon EC2 User Guide.
SpotInstanceRequests -> (list)
The Spot Instance requests.
(structure)
Describes a Spot Instance request.
ActualBlockHourlyPrice -> (string)
Deprecated.AvailabilityZoneGroup -> (string)
The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.BlockDurationMinutes -> (integer)
Deprecated.CreateTime -> (timestamp)
The date and time when the Spot Instance request was created, in UTC format (for example, YYYY -MM -DD T*HH* :MM :SS Z).Fault -> (structure)
The fault codes for the Spot Instance request, if any.
Code -> (string)
The reason code for the Spot Instance state change.Message -> (string)
The message for the Spot Instance state change.InstanceId -> (string)
The instance ID, if an instance has been launched to fulfill the Spot Instance request.LaunchGroup -> (string)
The instance launch group. Launch groups are Spot Instances that launch together and terminate together.LaunchSpecification -> (structure)
Additional information for launching instances.
UserData -> (string)
The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.AddressingType -> (string)
Deprecated.BlockDeviceMappings -> (list)
The block device mapping entries.
(structure)
Describes a block device mapping, which defines the EBS volumes and instance store volumes to attach to an instance at launch.
Ebs -> (structure)
Parameters used to automatically set up EBS volumes when the instance is launched.
DeleteOnTermination -> (boolean)
Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .Iops -> (integer)
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPSFor
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.SnapshotId -> (string)
The ID of the snapshot.VolumeSize -> (integer)
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiBVolumeType -> (string)
The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .KmsKeyId -> (string)
Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption.
This parameter is only supported on
BlockDeviceMapping
objects called by RunInstances , RequestSpotFleet , and RequestSpotInstances .Throughput -> (integer)
The throughput that the volume supports, in MiB/s.
This parameter is valid only for
gp3
volumes.Valid Range: Minimum value of 125. Maximum value of 1000.
OutpostArn -> (string)
The ARN of the Outpost on which the snapshot is stored.
This parameter is not supported when using CreateImage .
Encrypted -> (boolean)
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS encryption in the Amazon EBS User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported instance types .
This parameter is not returned by DescribeImageAttribute .
For CreateImage and RegisterImage , whether you can include this parameter, and the allowed values differ depending on the type of block device mapping you are creating.
- If you are creating a block device mapping for a new (empty) volume , you can include this parameter, and specify either
true
for an encrypted volume, orfalse
for an unencrypted volume. If you omit this parameter, it defaults tofalse
(unencrypted).- If you are creating a block device mapping from an existing encrypted or unencrypted snapshot , you must omit this parameter. If you include this parameter, the request will fail, regardless of the value that you specify.
- If you are creating a block device mapping from an existing unencrypted volume , you can include this parameter, but you must specify
false
. If you specifytrue
, the request will fail. In this case, we recommend that you omit the parameter.- If you are creating a block device mapping from an existing encrypted volume , you can include this parameter, and specify either
true
orfalse
. However, if you specifyfalse
, the parameter is ignored and the block device mapping is always encrypted. In this case, we recommend that you omit the parameter.NoDevice -> (string)
To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.DeviceName -> (string)
The device name (for example,/dev/sdh
orxvdh
).VirtualName -> (string)
The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
EbsOptimized -> (boolean)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn’t available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
IamInstanceProfile -> (structure)
The IAM instance profile.
Arn -> (string)
The Amazon Resource Name (ARN) of the instance profile.Name -> (string)
The name of the instance profile.ImageId -> (string)
The ID of the AMI.InstanceType -> (string)
The instance type. Only one instance type can be specified.KernelId -> (string)
The ID of the kernel.KeyName -> (string)
The name of the key pair.NetworkInterfaces -> (list)
The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
(structure)
Describes a network interface.
AssociatePublicIpAddress -> (boolean)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
DeleteOnTermination -> (boolean)
If set totrue
, the interface is deleted when the instance is terminated. You can specifytrue
only if creating a new network interface when launching an instance.Description -> (string)
The description of the network interface. Applies only if creating a network interface when launching an instance.DeviceIndex -> (integer)
The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
Groups -> (list)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
(string)
Ipv6AddressCount -> (integer)
A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you’ve specified a minimum number of instances to launch.Ipv6Addresses -> (list)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you’ve specified a minimum number of instances to launch.
(structure)
Describes an IPv6 address.
Ipv6Address -> (string)
The IPv6 address.IsPrimaryIpv6 -> (boolean)
Determines if an IPv6 address associated with a network interface is the primary IPv6 address. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information, see RunInstances .NetworkInterfaceId -> (string)
The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
PrivateIpAddress -> (string)
The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you’re launching more than one instance in a RunInstances request.PrivateIpAddresses -> (list)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you’re launching more than one instance in a RunInstances request.
(structure)
Describes a secondary private IPv4 address for a network interface.
Primary -> (boolean)
Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.PrivateIpAddress -> (string)
The private IPv4 address.SecondaryPrivateIpAddressCount -> (integer)
The number of secondary private IPv4 addresses. You can’t specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you’re launching more than one instance in a RunInstances request.SubnetId -> (string)
The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.AssociateCarrierIpAddress -> (boolean)
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide .
InterfaceType -> (string)
The type of network interface.
If you specify
efa-only
, do not assign any IP addresses to the network interface. EFA-only network interfaces do not support IP addresses.Valid values:
interface
|efa
|efa-only
NetworkCardIndex -> (integer)
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances .
Ipv4Prefixes -> (list)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.(structure)
Describes the IPv4 prefix option for a network interface.
Ipv4Prefix -> (string)
The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide .Ipv4PrefixCount -> (integer)
The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv4Prefix
option.Ipv6Prefixes -> (list)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.(structure)
Describes the IPv4 prefix option for a network interface.
Ipv6Prefix -> (string)
The IPv6 prefix.Ipv6PrefixCount -> (integer)
The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv6Prefix
option.PrimaryIpv6 -> (boolean)
The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances .EnaSrdSpecification -> (structure)
Specifies the ENA Express settings for the network interface that’s attached to the instance.
EnaSrdEnabled -> (boolean)
Specifies whether ENA Express is enabled for the network interface when you launch an instance from your launch template.EnaSrdUdpSpecification -> (structure)
Contains ENA Express settings for UDP network traffic in your launch template.
EnaSrdUdpEnabled -> (boolean)
Indicates whether UDP traffic uses ENA Express for your instance. To ensure that UDP traffic can use ENA Express when you launch an instance, you must also set EnaSrdEnabled in the EnaSrdSpecificationRequest totrue
in your launch template.ConnectionTrackingSpecification -> (structure)
A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide .
TcpEstablishedTimeout -> (integer)
Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.UdpStreamTimeout -> (integer)
Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.UdpTimeout -> (integer)
Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.Placement -> (structure)
The placement information for the instance.
AvailabilityZone -> (string)
The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, “us-west-2a, us-west-2b”.
GroupName -> (string)
The name of the placement group.Tenancy -> (string)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy ofdedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.RamdiskId -> (string)
The ID of the RAM disk.SubnetId -> (string)
The ID of the subnet in which to launch the instance.SecurityGroups -> (list)
The IDs of the security groups.
(structure)
Describes a security group.
GroupId -> (string)
The ID of the security group.GroupName -> (string)
The name of the security group.Monitoring -> (structure)
Describes the monitoring of an instance.
Enabled -> (boolean)
Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.LaunchedAvailabilityZone -> (string)
The Availability Zone in which the request is launched.ProductDescription -> (string)
The product description associated with the Spot Instance.SpotInstanceRequestId -> (string)
The ID of the Spot Instance request.SpotPrice -> (string)
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
Warning
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.State -> (string)
The state of the Spot Instance request. Spot request status information helps track your Spot Instance requests. For more information, see Spot request status in the Amazon EC2 User Guide .Status -> (structure)
The status code and status message describing the Spot Instance request.
Code -> (string)
The status code. For a list of status codes, see Spot request status codes in the Amazon EC2 User Guide .Message -> (string)
The description for the status code.UpdateTime -> (timestamp)
The date and time of the most recent status update, in UTC format (for example, YYYY -MM -DD T*HH* :MM :SS Z).Tags -> (list)
Any tags assigned to the resource.
(structure)
Describes a tag.
Key -> (string)
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:
.Value -> (string)
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.
Type -> (string)
The Spot Instance request type.ValidFrom -> (timestamp)
The start date of the request, in UTC format (for example, YYYY -MM -DD T*HH* :MM :SS Z). The request becomes active at this date and time.ValidUntil -> (timestamp)
The end date of the request, in UTC format (YYYY -MM -DD T*HH* :MM :SS Z).
- For a persistent request, the request remains active until the
validUntil
date and time is reached. Otherwise, the request remains active until you cancel it.- For a one-time request, the request remains active until all instances launch, the request is canceled, or the
validUntil
date and time is reached. By default, the request is valid for 7 days from the date the request was created.InstanceInterruptionBehavior -> (string)
The behavior when a Spot Instance is interrupted.
NextToken -> (string)
The token to include in another request to get the next page of items. This value isnull
when there are no more items to return.