/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EC2.Model
{
///
/// Container for the parameters to the DescribeSpotInstanceRequests operation.
/// 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.
///
///
public partial class DescribeSpotInstanceRequestsRequest : AmazonEC2Request
{
private List _filters = new List();
private int? _maxResults;
private string _nextToken;
private List _spotInstanceRequestIds = new List();
///
/// Gets and sets the property Filters.
///
/// 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
or xvdh
).
///
/// -
///
///
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
/// for General Purpose SSD, io1
or io2
for Provisioned IOPS
/// SSD, st1
for Throughput Optimized HDD, sc1
for Cold HDD,
/// or standard
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 for Linux Instances.
///
/// -
///
///
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 key Owner
/// and the value TeamA
, specify tag:Owner
for the filter name
/// and TeamA
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.
///
///
///
public List Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of items to return for this request. To get the next page of items,
/// make another request with the token returned in the output. For more information,
/// see Pagination.
///
///
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// The token returned from a previous paginated request. Pagination continues from the
/// end of the items returned by the previous request.
///
///
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property SpotInstanceRequestIds.
///
/// The IDs of the Spot Instance requests.
///
///
public List SpotInstanceRequestIds
{
get { return this._spotInstanceRequestIds; }
set { this._spotInstanceRequestIds = value; }
}
// Check to see if SpotInstanceRequestIds property is set
internal bool IsSetSpotInstanceRequestIds()
{
return this._spotInstanceRequestIds != null && this._spotInstanceRequestIds.Count > 0;
}
}
}