pub struct Builder { /* private fields */ }Expand description
A builder for PutRemediationExceptionsInput.
Implementations§
source§impl Builder
impl Builder
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 resource_keys.
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.
sourcepub fn build(self) -> Result<PutRemediationExceptionsInput, BuildError>
pub fn build(self) -> Result<PutRemediationExceptionsInput, BuildError>
Consumes the builder and constructs a PutRemediationExceptionsInput.
Examples found in repository?
9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutRemediationExceptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutRemediationExceptionsError>,
> {
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::PutRemediationExceptionsOutput,
aws_smithy_http::result::SdkError<crate::error::PutRemediationExceptionsError>,
> {
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
}