pub struct PutRemediationExceptions { /* private fields */ }Expand description
Fluent builder constructing a request to PutRemediationExceptions.
A remediation exception is when a specific resource is no longer considered for auto-remediation. This API adds a new exception or updates an existing exception for a specific resource with a specific Config rule.
Config generates a remediation exception when a problem occurs executing a remediation action to a specific resource. Remediation exceptions blocks auto-remediation until the exception is cleared.
Implementations§
source§impl PutRemediationExceptions
impl PutRemediationExceptions
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutRemediationExceptions, AwsResponseRetryClassifier>, SdkError<PutRemediationExceptionsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutRemediationExceptions, AwsResponseRetryClassifier>, SdkError<PutRemediationExceptionsError>>
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<PutRemediationExceptionsOutput, SdkError<PutRemediationExceptionsError>>
pub async fn send(
self
) -> Result<PutRemediationExceptionsOutput, SdkError<PutRemediationExceptionsError>>
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 config_rule_name(self, input: impl Into<String>) -> Self
pub fn config_rule_name(self, input: impl Into<String>) -> Self
The name of the Config rule for which you want to create remediation exception.
sourcepub fn set_config_rule_name(self, input: Option<String>) -> Self
pub fn set_config_rule_name(self, input: Option<String>) -> Self
The name of the Config rule for which you want to create remediation exception.
sourcepub fn resource_keys(self, input: RemediationExceptionResourceKey) -> Self
pub fn resource_keys(self, input: RemediationExceptionResourceKey) -> Self
Appends an item to ResourceKeys.
To override the contents of this collection use set_resource_keys.
An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.
sourcepub fn set_resource_keys(
self,
input: Option<Vec<RemediationExceptionResourceKey>>
) -> Self
pub fn set_resource_keys(
self,
input: Option<Vec<RemediationExceptionResourceKey>>
) -> Self
An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The message contains an explanation of the exception.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message contains an explanation of the exception.
sourcepub fn expiration_time(self, input: DateTime) -> Self
pub fn expiration_time(self, input: DateTime) -> Self
The exception is automatically deleted after the expiration date.
sourcepub fn set_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_expiration_time(self, input: Option<DateTime>) -> Self
The exception is automatically deleted after the expiration date.
Trait Implementations§
source§impl Clone for PutRemediationExceptions
impl Clone for PutRemediationExceptions
source§fn clone(&self) -> PutRemediationExceptions
fn clone(&self) -> PutRemediationExceptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more