EC2 / Paginator / DescribeScheduledInstanceAvailability

DescribeScheduledInstanceAvailability#

class 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'
    }
)
Parameters:
  • DryRun (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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • Filters (list) –

    The filters.

    • availability-zone - The Availability Zone (for example, us-west-2a).

    • instance-type - The instance type (for example, c4.large).

    • platform - The platform ( Linux/UNIX or Windows).

    • (dict) –

      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) –

  • FirstSlotStartTimeRange (dict) –

    [REQUIRED]

    The time period for the first schedule to start.

    • EarliestTime (datetime) – [REQUIRED]

      The earliest date and time, in UTC, for the Scheduled Instance to start.

    • LatestTime (datetime) – [REQUIRED]

      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.

  • MaxSlotDurationInHours (integer) – The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours and less than 1,720.

  • MinSlotDurationInHours (integer) – The minimum available duration, in hours. The minimum required duration is 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

  • Recurrence (dict) –

    [REQUIRED]

    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.

    • OccurrenceDays (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). 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.

      • (integer) –

    • OccurrenceRelativeToEnd (boolean) –

      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.

    • OccurrenceUnit (string) –

      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.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      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.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

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.

        • 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).

            • (integer) –

          • 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.