Struct aws_sdk_kinesis::client::fluent_builders::DecreaseStreamRetentionPeriod [−][src]
pub struct DecreaseStreamRetentionPeriod<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to DecreaseStreamRetentionPeriod
.
Decreases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.
This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.
Implementations
impl<C, M, R> DecreaseStreamRetentionPeriod<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DecreaseStreamRetentionPeriod<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DecreaseStreamRetentionPeriodOutput, SdkError<DecreaseStreamRetentionPeriodError>> where
R::Policy: SmithyRetryPolicy<DecreaseStreamRetentionPeriodInputOperationOutputAlias, DecreaseStreamRetentionPeriodOutput, DecreaseStreamRetentionPeriodError, DecreaseStreamRetentionPeriodInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DecreaseStreamRetentionPeriodOutput, SdkError<DecreaseStreamRetentionPeriodError>> where
R::Policy: SmithyRetryPolicy<DecreaseStreamRetentionPeriodInputOperationOutputAlias, DecreaseStreamRetentionPeriodOutput, DecreaseStreamRetentionPeriodError, DecreaseStreamRetentionPeriodInputOperationRetryAlias>,
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 stream to modify.
The name of the stream to modify.
The new retention period of the stream, in hours. Must be less than the current retention period.
The new retention period of the stream, in hours. Must be less than the current retention period.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for DecreaseStreamRetentionPeriod<C, M, R>
impl<C, M, R> Send for DecreaseStreamRetentionPeriod<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DecreaseStreamRetentionPeriod<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DecreaseStreamRetentionPeriod<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for DecreaseStreamRetentionPeriod<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