Struct aws_sdk_computeoptimizer::client::fluent_builders::GetEffectiveRecommendationPreferences [−][src]
pub struct GetEffectiveRecommendationPreferences<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetEffectiveRecommendationPreferences
.
Returns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics. Considers all applicable preferences that you might have set at the resource, account, and organization level.
When you create a recommendation preference, you can set its status to Active
or Inactive
. Use this action to view the recommendation preferences that are in effect, or Active
.
Implementations
impl<C, M, R> GetEffectiveRecommendationPreferences<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetEffectiveRecommendationPreferences<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetEffectiveRecommendationPreferencesOutput, SdkError<GetEffectiveRecommendationPreferencesError>> where
R::Policy: SmithyRetryPolicy<GetEffectiveRecommendationPreferencesInputOperationOutputAlias, GetEffectiveRecommendationPreferencesOutput, GetEffectiveRecommendationPreferencesError, GetEffectiveRecommendationPreferencesInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetEffectiveRecommendationPreferencesOutput, SdkError<GetEffectiveRecommendationPreferencesError>> where
R::Policy: SmithyRetryPolicy<GetEffectiveRecommendationPreferencesInputOperationOutputAlias, GetEffectiveRecommendationPreferencesOutput, GetEffectiveRecommendationPreferencesError, GetEffectiveRecommendationPreferencesInputOperationRetryAlias>,
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.
The Amazon Resource Name (ARN) of the resource for which to confirm effective recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are currently supported.
The Amazon Resource Name (ARN) of the resource for which to confirm effective recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are currently supported.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetEffectiveRecommendationPreferences<C, M, R>
impl<C, M, R> Send for GetEffectiveRecommendationPreferences<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetEffectiveRecommendationPreferences<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetEffectiveRecommendationPreferences<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetEffectiveRecommendationPreferences<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