#[non_exhaustive]pub struct GetEbsVolumeRecommendationsInput { /* private fields */ }
Implementations§
source§impl GetEbsVolumeRecommendationsInput
impl GetEbsVolumeRecommendationsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEBSVolumeRecommendations, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetEBSVolumeRecommendations, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetEBSVolumeRecommendations
>
Examples found in repository?
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetEBSVolumeRecommendations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetEBSVolumeRecommendationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetEbsVolumeRecommendationsOutput,
aws_smithy_http::result::SdkError<crate::error::GetEBSVolumeRecommendationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetEbsVolumeRecommendationsInput
.
source§impl GetEbsVolumeRecommendationsInput
impl GetEbsVolumeRecommendationsInput
sourcepub fn volume_arns(&self) -> Option<&[String]>
pub fn volume_arns(&self) -> Option<&[String]>
The Amazon Resource Name (ARN) of the volumes for which to return recommendations.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to advance to the next page of volume recommendations.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of volume recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn filters(&self) -> Option<&[EbsFilter]>
pub fn filters(&self) -> Option<&[EbsFilter]>
An array of objects to specify a filter that returns a more specific list of volume recommendations.
sourcepub fn account_ids(&self) -> Option<&[String]>
pub fn account_ids(&self) -> Option<&[String]>
The ID of the Amazon Web Services account for which to return volume recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return volume recommendations.
Only one account ID can be specified per request.
Trait Implementations§
source§impl Clone for GetEbsVolumeRecommendationsInput
impl Clone for GetEbsVolumeRecommendationsInput
source§fn clone(&self) -> GetEbsVolumeRecommendationsInput
fn clone(&self) -> GetEbsVolumeRecommendationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more