Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Finds available schedules that meet the specified criteria.
You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 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.
After you find a schedule that meets your needs, call PurchaseScheduledInstances
to purchase Scheduled Instances with that schedule.
- describeScheduledInstanceAvailability :: ScheduledInstanceRecurrenceRequest -> SlotDateTimeRangeRequest -> DescribeScheduledInstanceAvailability
- data DescribeScheduledInstanceAvailability
- dsiaMinSlotDurationInHours :: Lens' DescribeScheduledInstanceAvailability (Maybe Int)
- dsiaFilters :: Lens' DescribeScheduledInstanceAvailability [Filter]
- dsiaNextToken :: Lens' DescribeScheduledInstanceAvailability (Maybe Text)
- dsiaMaxSlotDurationInHours :: Lens' DescribeScheduledInstanceAvailability (Maybe Int)
- dsiaDryRun :: Lens' DescribeScheduledInstanceAvailability (Maybe Bool)
- dsiaMaxResults :: Lens' DescribeScheduledInstanceAvailability (Maybe Int)
- dsiaRecurrence :: Lens' DescribeScheduledInstanceAvailability ScheduledInstanceRecurrenceRequest
- dsiaFirstSlotStartTimeRange :: Lens' DescribeScheduledInstanceAvailability SlotDateTimeRangeRequest
- describeScheduledInstanceAvailabilityResponse :: Int -> DescribeScheduledInstanceAvailabilityResponse
- data DescribeScheduledInstanceAvailabilityResponse
- dsiarsScheduledInstanceAvailabilitySet :: Lens' DescribeScheduledInstanceAvailabilityResponse [ScheduledInstanceAvailability]
- dsiarsNextToken :: Lens' DescribeScheduledInstanceAvailabilityResponse (Maybe Text)
- dsiarsResponseStatus :: Lens' DescribeScheduledInstanceAvailabilityResponse Int
Creating a Request
describeScheduledInstanceAvailability Source #
:: ScheduledInstanceRecurrenceRequest | |
-> SlotDateTimeRangeRequest | |
-> DescribeScheduledInstanceAvailability |
Creates a value of DescribeScheduledInstanceAvailability
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsiaMinSlotDurationInHours
- 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.dsiaFilters
- One or more 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
orEC2-VPC
). *platform
- The platform (Linux/UNIX
orWindows
).dsiaNextToken
- The token for the next set of results.dsiaMaxSlotDurationInHours
- The maximum available duration, in hours. This value must be greater thanMinSlotDurationInHours
and less than 1,720.dsiaDryRun
- 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
.dsiaMaxResults
- The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returnedNextToken
value.dsiaRecurrence
- The schedule recurrence.dsiaFirstSlotStartTimeRange
- The time period for the first schedule to start.
data DescribeScheduledInstanceAvailability Source #
Contains the parameters for DescribeScheduledInstanceAvailability.
See: describeScheduledInstanceAvailability
smart constructor.
Request Lenses
dsiaMinSlotDurationInHours :: Lens' DescribeScheduledInstanceAvailability (Maybe Int) Source #
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.
dsiaFilters :: Lens' DescribeScheduledInstanceAvailability [Filter] Source #
One or more 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
).
dsiaNextToken :: Lens' DescribeScheduledInstanceAvailability (Maybe Text) Source #
The token for the next set of results.
dsiaMaxSlotDurationInHours :: Lens' DescribeScheduledInstanceAvailability (Maybe Int) Source #
The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours
and less than 1,720.
dsiaDryRun :: Lens' DescribeScheduledInstanceAvailability (Maybe Bool) Source #
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
.
dsiaMaxResults :: Lens' DescribeScheduledInstanceAvailability (Maybe Int) Source #
The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned NextToken
value.
dsiaRecurrence :: Lens' DescribeScheduledInstanceAvailability ScheduledInstanceRecurrenceRequest Source #
The schedule recurrence.
dsiaFirstSlotStartTimeRange :: Lens' DescribeScheduledInstanceAvailability SlotDateTimeRangeRequest Source #
The time period for the first schedule to start.
Destructuring the Response
describeScheduledInstanceAvailabilityResponse Source #
Creates a value of DescribeScheduledInstanceAvailabilityResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsiarsScheduledInstanceAvailabilitySet
- Information about the available Scheduled Instances.dsiarsNextToken
- The token required to retrieve the next set of results. This value isnull
when there are no more results to return.dsiarsResponseStatus
- -- | The response status code.
data DescribeScheduledInstanceAvailabilityResponse Source #
Contains the output of DescribeScheduledInstanceAvailability.
See: describeScheduledInstanceAvailabilityResponse
smart constructor.
Response Lenses
dsiarsScheduledInstanceAvailabilitySet :: Lens' DescribeScheduledInstanceAvailabilityResponse [ScheduledInstanceAvailability] Source #
Information about the available Scheduled Instances.
dsiarsNextToken :: Lens' DescribeScheduledInstanceAvailabilityResponse (Maybe Text) Source #
The token required to retrieve the next set of results. This value is null
when there are no more results to return.
dsiarsResponseStatus :: Lens' DescribeScheduledInstanceAvailabilityResponse Int Source #
- - | The response status code.