Struct aws_sdk_cloudwatchlogs::client::fluent_builders::PutRetentionPolicy [−][src]
pub struct PutRetentionPolicy<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutRetentionPolicy
.
Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.
Implementations
impl<C, M, R> PutRetentionPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutRetentionPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError>> where
R::Policy: SmithyRetryPolicy<PutRetentionPolicyInputOperationOutputAlias, PutRetentionPolicyOutput, PutRetentionPolicyError, PutRetentionPolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError>> where
R::Policy: SmithyRetryPolicy<PutRetentionPolicyInputOperationOutputAlias, PutRetentionPolicyOutput, PutRetentionPolicyError, PutRetentionPolicyInputOperationRetryAlias>,
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.
The name of the log group.
The name of the log group.
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
To set a log group to never have log events expire, use DeleteRetentionPolicy.
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
To set a log group to never have log events expire, use DeleteRetentionPolicy.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for PutRetentionPolicy<C, M, R>
impl<C, M, R> Send for PutRetentionPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutRetentionPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutRetentionPolicy<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for PutRetentionPolicy<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more