EC2.Paginator.
DescribeScheduledInstanceAvailability
¶paginator = client.get_paginator('describe_scheduled_instance_availability')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from EC2.Client.describe_scheduled_instance_availability()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
DryRun=True|False,
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
FirstSlotStartTimeRange={
'EarliestTime': datetime(2015, 1, 1),
'LatestTime': datetime(2015, 1, 1)
},
MaxSlotDurationInHours=123,
MinSlotDurationInHours=123,
Recurrence={
'Frequency': 'string',
'Interval': 123,
'OccurrenceDays': [
123,
],
'OccurrenceRelativeToEnd': True|False,
'OccurrenceUnit': 'string'
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.The filters.
availability-zone
- The Availability Zone (for example, us-west-2a
).instance-type
- The instance type (for example, c4.large
).network-platform
- The network platform ( EC2-Classic
or EC2-VPC
).platform
- The platform ( Linux/UNIX
or Windows
).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.
The name of the filter. Filter names are case-sensitive.
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.
[REQUIRED]
The time period for the first schedule to start.
The earliest date and time, in UTC, for the Scheduled Instance to start.
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
MinSlotDurationInHours
and less than 1,720.[REQUIRED]
The schedule recurrence.
The frequency ( Daily
, Weekly
, or Monthly
).
The interval quantity. The interval unit depends on the value of Frequency
. For example, every 2 weeks or every 2 months.
The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.
Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.
The unit for OccurrenceDays
( DayOfWeek
or DayOfMonth
). This value is required for a monthly schedule. You can't specify DayOfWeek
with a weekly schedule. You can't specify this value with a daily schedule.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'ScheduledInstanceAvailabilitySet': [
{
'AvailabilityZone': 'string',
'AvailableInstanceCount': 123,
'FirstSlotStartTime': datetime(2015, 1, 1),
'HourlyPrice': 'string',
'InstanceType': 'string',
'MaxTermDurationInDays': 123,
'MinTermDurationInDays': 123,
'NetworkPlatform': 'string',
'Platform': 'string',
'PurchaseToken': 'string',
'Recurrence': {
'Frequency': 'string',
'Interval': 123,
'OccurrenceDaySet': [
123,
],
'OccurrenceRelativeToEnd': True|False,
'OccurrenceUnit': 'string'
},
'SlotDurationInHours': 123,
'TotalScheduledInstanceHours': 123
},
]
}
Response Structure
(dict) --
Contains the output of DescribeScheduledInstanceAvailability.
ScheduledInstanceAvailabilitySet (list) --
Information about the available Scheduled Instances.
(dict) --
Describes a schedule that is available for your Scheduled Instances.
AvailabilityZone (string) --
The Availability Zone.
AvailableInstanceCount (integer) --
The number of available instances.
FirstSlotStartTime (datetime) --
The time period for the first schedule to start.
HourlyPrice (string) --
The hourly price for a single instance.
InstanceType (string) --
The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
MaxTermDurationInDays (integer) --
The maximum term. The only possible value is 365 days.
MinTermDurationInDays (integer) --
The minimum term. The only possible value is 365 days.
NetworkPlatform (string) --
The network platform ( EC2-Classic
or EC2-VPC
).
Platform (string) --
The platform ( Linux/UNIX
or Windows
).
PurchaseToken (string) --
The purchase token. This token expires in two hours.
Recurrence (dict) --
The schedule recurrence.
Frequency (string) --
The frequency ( Daily
, Weekly
, or Monthly
).
Interval (integer) --
The interval quantity. The interval unit depends on the value of frequency
. For example, every 2 weeks or every 2 months.
OccurrenceDaySet (list) --
The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday).
OccurrenceRelativeToEnd (boolean) --
Indicates whether the occurrence is relative to the end of the specified week or month.
OccurrenceUnit (string) --
The unit for occurrenceDaySet
( DayOfWeek
or DayOfMonth
).
SlotDurationInHours (integer) --
The number of hours in the schedule.
TotalScheduledInstanceHours (integer) --
The total number of hours for a single instance for the entire term.