Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Increases 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 maximum value of a stream's retention period is 168 hours (7 days).
If you choose a longer stream retention period, this operation increases the time period during which records that have not yet expired are accessible. However, it does not make previous, expired data (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours remains inaccessible to consumer applications.
Synopsis
- data IncreaseStreamRetentionPeriod = IncreaseStreamRetentionPeriod' {}
- newIncreaseStreamRetentionPeriod :: Text -> Int -> IncreaseStreamRetentionPeriod
- increaseStreamRetentionPeriod_streamName :: Lens' IncreaseStreamRetentionPeriod Text
- increaseStreamRetentionPeriod_retentionPeriodHours :: Lens' IncreaseStreamRetentionPeriod Int
- data IncreaseStreamRetentionPeriodResponse = IncreaseStreamRetentionPeriodResponse' {
- newIncreaseStreamRetentionPeriodResponse :: IncreaseStreamRetentionPeriodResponse
Creating a Request
data IncreaseStreamRetentionPeriod Source #
Represents the input for IncreaseStreamRetentionPeriod.
See: newIncreaseStreamRetentionPeriod
smart constructor.
IncreaseStreamRetentionPeriod' | |
|
Instances
newIncreaseStreamRetentionPeriod Source #
:: Text | |
-> Int | |
-> IncreaseStreamRetentionPeriod |
Create a value of IncreaseStreamRetentionPeriod
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:
$sel:streamName:IncreaseStreamRetentionPeriod'
, increaseStreamRetentionPeriod_streamName
- The name of the stream to modify.
$sel:retentionPeriodHours:IncreaseStreamRetentionPeriod'
, increaseStreamRetentionPeriod_retentionPeriodHours
- The new retention period of the stream, in hours. Must be more than the
current retention period.
Request Lenses
increaseStreamRetentionPeriod_streamName :: Lens' IncreaseStreamRetentionPeriod Text Source #
The name of the stream to modify.
increaseStreamRetentionPeriod_retentionPeriodHours :: Lens' IncreaseStreamRetentionPeriod Int Source #
The new retention period of the stream, in hours. Must be more than the current retention period.
Destructuring the Response
data IncreaseStreamRetentionPeriodResponse Source #
See: newIncreaseStreamRetentionPeriodResponse
smart constructor.
Instances
Eq IncreaseStreamRetentionPeriodResponse Source # | |
Read IncreaseStreamRetentionPeriodResponse Source # | |
Show IncreaseStreamRetentionPeriodResponse Source # | |
Generic IncreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.IncreaseStreamRetentionPeriod type Rep IncreaseStreamRetentionPeriodResponse :: Type -> Type # | |
NFData IncreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.IncreaseStreamRetentionPeriod rnf :: IncreaseStreamRetentionPeriodResponse -> () # | |
type Rep IncreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.IncreaseStreamRetentionPeriod type Rep IncreaseStreamRetentionPeriodResponse = D1 ('MetaData "IncreaseStreamRetentionPeriodResponse" "Amazonka.Kinesis.IncreaseStreamRetentionPeriod" "libZSservicesZSamazonka-kinesisZSamazonka-kinesis" 'False) (C1 ('MetaCons "IncreaseStreamRetentionPeriodResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newIncreaseStreamRetentionPeriodResponse :: IncreaseStreamRetentionPeriodResponse Source #
Create a value of IncreaseStreamRetentionPeriodResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.