pub struct DisableAwsNetworkPerformanceMetricSubscription { /* private fields */ }
Expand description
Fluent builder constructing a request to DisableAwsNetworkPerformanceMetricSubscription
.
Disables Infrastructure Performance metric subscriptions.
Implementations§
source§impl DisableAwsNetworkPerformanceMetricSubscription
impl DisableAwsNetworkPerformanceMetricSubscription
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DisableAwsNetworkPerformanceMetricSubscription, AwsResponseRetryClassifier>, SdkError<DisableAwsNetworkPerformanceMetricSubscriptionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DisableAwsNetworkPerformanceMetricSubscription, AwsResponseRetryClassifier>, SdkError<DisableAwsNetworkPerformanceMetricSubscriptionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DisableAwsNetworkPerformanceMetricSubscriptionOutput, SdkError<DisableAwsNetworkPerformanceMetricSubscriptionError>>
pub async fn send(
self
) -> Result<DisableAwsNetworkPerformanceMetricSubscriptionOutput, SdkError<DisableAwsNetworkPerformanceMetricSubscriptionError>>
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.
sourcepub fn source(self, input: impl Into<String>) -> Self
pub fn source(self, input: impl Into<String>) -> Self
The source Region or Availability Zone that the metric subscription is disabled for. For example, us-east-1
.
sourcepub fn set_source(self, input: Option<String>) -> Self
pub fn set_source(self, input: Option<String>) -> Self
The source Region or Availability Zone that the metric subscription is disabled for. For example, us-east-1
.
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The target Region or Availability Zone that the metric subscription is disabled for. For example, eu-north-1
.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The target Region or Availability Zone that the metric subscription is disabled for. For example, eu-north-1
.
sourcepub fn metric(self, input: MetricType) -> Self
pub fn metric(self, input: MetricType) -> Self
The metric used for the disabled subscription.
sourcepub fn set_metric(self, input: Option<MetricType>) -> Self
pub fn set_metric(self, input: Option<MetricType>) -> Self
The metric used for the disabled subscription.
sourcepub fn statistic(self, input: StatisticType) -> Self
pub fn statistic(self, input: StatisticType) -> Self
The statistic used for the disabled subscription.
sourcepub fn set_statistic(self, input: Option<StatisticType>) -> Self
pub fn set_statistic(self, input: Option<StatisticType>) -> Self
The statistic used for the disabled subscription.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
Trait Implementations§
source§impl Clone for DisableAwsNetworkPerformanceMetricSubscription
impl Clone for DisableAwsNetworkPerformanceMetricSubscription
source§fn clone(&self) -> DisableAwsNetworkPerformanceMetricSubscription
fn clone(&self) -> DisableAwsNetworkPerformanceMetricSubscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more