#[non_exhaustive]pub struct DeleteRecommendationPreferencesInput { /* private fields */ }
Implementations§
source§impl DeleteRecommendationPreferencesInput
impl DeleteRecommendationPreferencesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteRecommendationPreferences, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteRecommendationPreferences, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteRecommendationPreferences
>
Examples found in repository?
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteRecommendationPreferences,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteRecommendationPreferencesError>,
> {
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::DeleteRecommendationPreferencesOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteRecommendationPreferencesError>,
> {
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 DeleteRecommendationPreferencesInput
.
source§impl DeleteRecommendationPreferencesInput
impl DeleteRecommendationPreferencesInput
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The target resource type of the recommendation preference to delete.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
The valid values for this parameter are Ec2Instance
and AutoScalingGroup
.
sourcepub fn scope(&self) -> Option<&Scope>
pub fn scope(&self) -> Option<&Scope>
An object that describes the scope of the recommendation preference to delete.
You can delete recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn recommendation_preference_names(
&self
) -> Option<&[RecommendationPreferenceName]>
pub fn recommendation_preference_names(
&self
) -> Option<&[RecommendationPreferenceName]>
The name of the recommendation preference to delete.
Enhanced infrastructure metrics (EnhancedInfrastructureMetrics
) is the only feature that can be activated through preferences. Therefore, it is also the only recommendation preference that can be deleted.
Trait Implementations§
source§impl Clone for DeleteRecommendationPreferencesInput
impl Clone for DeleteRecommendationPreferencesInput
source§fn clone(&self) -> DeleteRecommendationPreferencesInput
fn clone(&self) -> DeleteRecommendationPreferencesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more