Struct aws_sdk_ec2::client::fluent_builders::DescribeScheduledInstanceAvailability [−][src]
pub struct DescribeScheduledInstanceAvailability<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DescribeScheduledInstanceAvailability
.
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.
Implementations
impl<C, M, R> DescribeScheduledInstanceAvailability<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DescribeScheduledInstanceAvailability<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DescribeScheduledInstanceAvailabilityOutput, SdkError<DescribeScheduledInstanceAvailabilityError>> where
R::Policy: SmithyRetryPolicy<DescribeScheduledInstanceAvailabilityInputOperationOutputAlias, DescribeScheduledInstanceAvailabilityOutput, DescribeScheduledInstanceAvailabilityError, DescribeScheduledInstanceAvailabilityInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DescribeScheduledInstanceAvailabilityOutput, SdkError<DescribeScheduledInstanceAvailabilityError>> where
R::Policy: SmithyRetryPolicy<DescribeScheduledInstanceAvailabilityInputOperationOutputAlias, DescribeScheduledInstanceAvailabilityOutput, DescribeScheduledInstanceAvailabilityError, DescribeScheduledInstanceAvailabilityInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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
.
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
.
Appends an item to Filters
.
To override the contents of this collection use set_filters
.
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
orEC2-VPC
). -
platform
- The platform (Linux/UNIX
orWindows
).
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
orEC2-VPC
). -
platform
- The platform (Linux/UNIX
orWindows
).
The time period for the first schedule to start.
The time period for the first schedule to start.
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.
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.
The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours
and less than 1,720.
The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours
and less than 1,720.
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.
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.
The token for the next set of results.
The token for the next set of results.
The schedule recurrence.
The schedule recurrence.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DescribeScheduledInstanceAvailability<C, M, R>
impl<C, M, R> Send for DescribeScheduledInstanceAvailability<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DescribeScheduledInstanceAvailability<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DescribeScheduledInstanceAvailability<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DescribeScheduledInstanceAvailability<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more