pub struct PutRetentionConfiguration { /* private fields */ }Expand description
Fluent builder constructing a request to PutRetentionConfiguration.
Creates and updates the retention configuration with details about retention period (number of days) that Config stores your historical information. The API creates the RetentionConfiguration object and names the object as default. When you have a RetentionConfiguration object named default, calling the API modifies the default object.
Currently, Config supports only one retention configuration per region in your account.
Implementations§
source§impl PutRetentionConfiguration
impl PutRetentionConfiguration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutRetentionConfiguration, AwsResponseRetryClassifier>, SdkError<PutRetentionConfigurationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutRetentionConfiguration, AwsResponseRetryClassifier>, SdkError<PutRetentionConfigurationError>>
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<PutRetentionConfigurationOutput, SdkError<PutRetentionConfigurationError>>
pub async fn send(
self
) -> Result<PutRetentionConfigurationOutput, SdkError<PutRetentionConfigurationError>>
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 retention_period_in_days(self, input: i32) -> Self
pub fn retention_period_in_days(self, input: i32) -> Self
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
sourcepub fn set_retention_period_in_days(self, input: Option<i32>) -> Self
pub fn set_retention_period_in_days(self, input: Option<i32>) -> Self
Number of days Config stores your historical information.
Currently, only applicable to the configuration item history.
Trait Implementations§
source§impl Clone for PutRetentionConfiguration
impl Clone for PutRetentionConfiguration
source§fn clone(&self) -> PutRetentionConfiguration
fn clone(&self) -> PutRetentionConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more