Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
When invoking this API, it is recommended you use the StreamARN
input
parameter rather than the StreamName
input parameter.
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.
Synopsis
- data DecreaseStreamRetentionPeriod = DecreaseStreamRetentionPeriod' {}
- newDecreaseStreamRetentionPeriod :: Int -> DecreaseStreamRetentionPeriod
- decreaseStreamRetentionPeriod_streamARN :: Lens' DecreaseStreamRetentionPeriod (Maybe Text)
- decreaseStreamRetentionPeriod_streamName :: Lens' DecreaseStreamRetentionPeriod (Maybe Text)
- decreaseStreamRetentionPeriod_retentionPeriodHours :: Lens' DecreaseStreamRetentionPeriod Int
- data DecreaseStreamRetentionPeriodResponse = DecreaseStreamRetentionPeriodResponse' {
- newDecreaseStreamRetentionPeriodResponse :: DecreaseStreamRetentionPeriodResponse
Creating a Request
data DecreaseStreamRetentionPeriod Source #
Represents the input for DecreaseStreamRetentionPeriod.
See: newDecreaseStreamRetentionPeriod
smart constructor.
DecreaseStreamRetentionPeriod' | |
|
Instances
newDecreaseStreamRetentionPeriod Source #
Create a value of DecreaseStreamRetentionPeriod
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DecreaseStreamRetentionPeriod
, decreaseStreamRetentionPeriod_streamARN
- The ARN of the stream.
DecreaseStreamRetentionPeriod
, decreaseStreamRetentionPeriod_streamName
- The name of the stream to modify.
DecreaseStreamRetentionPeriod
, decreaseStreamRetentionPeriod_retentionPeriodHours
- The new retention period of the stream, in hours. Must be less than the
current retention period.
Request Lenses
decreaseStreamRetentionPeriod_streamARN :: Lens' DecreaseStreamRetentionPeriod (Maybe Text) Source #
The ARN of the stream.
decreaseStreamRetentionPeriod_streamName :: Lens' DecreaseStreamRetentionPeriod (Maybe Text) Source #
The name of the stream to modify.
decreaseStreamRetentionPeriod_retentionPeriodHours :: Lens' DecreaseStreamRetentionPeriod Int Source #
The new retention period of the stream, in hours. Must be less than the current retention period.
Destructuring the Response
data DecreaseStreamRetentionPeriodResponse Source #
See: newDecreaseStreamRetentionPeriodResponse
smart constructor.
Instances
Generic DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod type Rep DecreaseStreamRetentionPeriodResponse :: Type -> Type # | |
Read DecreaseStreamRetentionPeriodResponse Source # | |
Show DecreaseStreamRetentionPeriodResponse Source # | |
NFData DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod rnf :: DecreaseStreamRetentionPeriodResponse -> () # | |
Eq DecreaseStreamRetentionPeriodResponse Source # | |
type Rep DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod type Rep DecreaseStreamRetentionPeriodResponse = D1 ('MetaData "DecreaseStreamRetentionPeriodResponse" "Amazonka.Kinesis.DecreaseStreamRetentionPeriod" "amazonka-kinesis-2.0-AW1spVPMUGf3LUqQQ22bci" 'False) (C1 ('MetaCons "DecreaseStreamRetentionPeriodResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newDecreaseStreamRetentionPeriodResponse :: DecreaseStreamRetentionPeriodResponse Source #
Create a value of DecreaseStreamRetentionPeriodResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.