Struct aws_sdk_ec2::input::DescribeSpotPriceHistoryInput
source · [−]#[non_exhaustive]pub struct DescribeSpotPriceHistoryInput {
pub filters: Option<Vec<Filter>>,
pub availability_zone: Option<String>,
pub dry_run: Option<bool>,
pub end_time: Option<DateTime>,
pub instance_types: Option<Vec<InstanceType>>,
pub max_results: Option<i32>,
pub next_token: Option<String>,
pub product_descriptions: Option<Vec<String>>,
pub start_time: Option<DateTime>,
}
Expand description
Contains the parameters for DescribeSpotPriceHistory.
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.filters: Option<Vec<Filter>>
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
product-description
- The product description for the Spot price (Linux/UNIX
|Red Hat Enterprise Linux
|SUSE Linux
|Windows
|Linux/UNIX (Amazon VPC)
|Red Hat Enterprise Linux (Amazon VPC)
|SUSE Linux (Amazon VPC)
|Windows (Amazon VPC)
). -
spot-price
- The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported). -
timestamp
- The time stamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
availability_zone: Option<String>
Filters the results by the specified Availability Zone.
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
.
end_time: Option<DateTime>
The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
instance_types: Option<Vec<InstanceType>>
Filters the results by the specified instance types.
max_results: Option<i32>
The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken
value.
next_token: Option<String>
The token for the next set of results.
product_descriptions: Option<Vec<String>>
Filters the results by the specified basic product descriptions.
start_time: Option<DateTime>
The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
Implementations
sourceimpl DescribeSpotPriceHistoryInput
impl DescribeSpotPriceHistoryInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeSpotPriceHistory, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeSpotPriceHistory, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<DescribeSpotPriceHistory
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeSpotPriceHistoryInput
.
sourceimpl DescribeSpotPriceHistoryInput
impl DescribeSpotPriceHistoryInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
availability-zone
- The Availability Zone for which prices should be returned. -
instance-type
- The type of instance (for example,m3.medium
). -
product-description
- The product description for the Spot price (Linux/UNIX
|Red Hat Enterprise Linux
|SUSE Linux
|Windows
|Linux/UNIX (Amazon VPC)
|Red Hat Enterprise Linux (Amazon VPC)
|SUSE Linux (Amazon VPC)
|Windows (Amazon VPC)
). -
spot-price
- The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported). -
timestamp
- The time stamp of the Spot price history, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater than or less than comparison is not supported.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
Filters the results by the specified Availability Zone.
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 end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
sourcepub fn instance_types(&self) -> Option<&[InstanceType]>
pub fn instance_types(&self) -> Option<&[InstanceType]>
Filters the results by the specified instance types.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return in a single call. Specify a value between 1 and 1000. The default value is 1000. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token for the next set of results.
sourcepub fn product_descriptions(&self) -> Option<&[String]>
pub fn product_descriptions(&self) -> Option<&[String]>
Filters the results by the specified basic product descriptions.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
Trait Implementations
sourceimpl Clone for DescribeSpotPriceHistoryInput
impl Clone for DescribeSpotPriceHistoryInput
sourcefn clone(&self) -> DescribeSpotPriceHistoryInput
fn clone(&self) -> DescribeSpotPriceHistoryInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DescribeSpotPriceHistoryInput
impl Debug for DescribeSpotPriceHistoryInput
sourceimpl PartialEq<DescribeSpotPriceHistoryInput> for DescribeSpotPriceHistoryInput
impl PartialEq<DescribeSpotPriceHistoryInput> for DescribeSpotPriceHistoryInput
sourcefn eq(&self, other: &DescribeSpotPriceHistoryInput) -> bool
fn eq(&self, other: &DescribeSpotPriceHistoryInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DescribeSpotPriceHistoryInput) -> bool
fn ne(&self, other: &DescribeSpotPriceHistoryInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for DescribeSpotPriceHistoryInput
Auto Trait Implementations
impl RefUnwindSafe for DescribeSpotPriceHistoryInput
impl Send for DescribeSpotPriceHistoryInput
impl Sync for DescribeSpotPriceHistoryInput
impl Unpin for DescribeSpotPriceHistoryInput
impl UnwindSafe for DescribeSpotPriceHistoryInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more