Struct aws_sdk_ec2::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsInput
source · #[non_exhaustive]pub struct DescribeCapacityBlockOfferingsInput {
pub dry_run: Option<bool>,
pub instance_type: Option<String>,
pub instance_count: Option<i32>,
pub start_date_range: Option<DateTime>,
pub end_date_range: Option<DateTime>,
pub capacity_duration_hours: Option<i32>,
pub next_token: Option<String>,
pub max_results: Option<i32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dry_run: Option<bool>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.
instance_type: Option<String>The type of instance for which the Capacity Block offering reserves capacity.
instance_count: Option<i32>The number of instances for which to reserve capacity.
start_date_range: Option<DateTime>The earliest start date for the Capacity Block offering.
end_date_range: Option<DateTime>The latest end date for the Capacity Block offering.
capacity_duration_hours: Option<i32>The number of hours for which to reserve Capacity Block.
next_token: Option<String>The token to use to retrieve the next page of results.
max_results: Option<i32>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.
Implementations§
source§impl DescribeCapacityBlockOfferingsInput
impl DescribeCapacityBlockOfferingsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The type of instance for which the Capacity Block offering reserves capacity.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances for which to reserve capacity.
sourcepub fn start_date_range(&self) -> Option<&DateTime>
pub fn start_date_range(&self) -> Option<&DateTime>
The earliest start date for the Capacity Block offering.
sourcepub fn end_date_range(&self) -> Option<&DateTime>
pub fn end_date_range(&self) -> Option<&DateTime>
The latest end date for the Capacity Block offering.
sourcepub fn capacity_duration_hours(&self) -> Option<i32>
pub fn capacity_duration_hours(&self) -> Option<i32>
The number of hours for which to reserve Capacity Block.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to use to retrieve the next page of results.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
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.
source§impl DescribeCapacityBlockOfferingsInput
impl DescribeCapacityBlockOfferingsInput
sourcepub fn builder() -> DescribeCapacityBlockOfferingsInputBuilder
pub fn builder() -> DescribeCapacityBlockOfferingsInputBuilder
Creates a new builder-style object to manufacture DescribeCapacityBlockOfferingsInput.
Trait Implementations§
source§impl Clone for DescribeCapacityBlockOfferingsInput
impl Clone for DescribeCapacityBlockOfferingsInput
source§fn clone(&self) -> DescribeCapacityBlockOfferingsInput
fn clone(&self) -> DescribeCapacityBlockOfferingsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for DescribeCapacityBlockOfferingsInput
impl PartialEq for DescribeCapacityBlockOfferingsInput
source§fn eq(&self, other: &DescribeCapacityBlockOfferingsInput) -> bool
fn eq(&self, other: &DescribeCapacityBlockOfferingsInput) -> bool
self and other values to be equal, and is used
by ==.