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 |
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.
Synopsis
- data DecreaseStreamRetentionPeriod = DecreaseStreamRetentionPeriod' {}
- newDecreaseStreamRetentionPeriod :: Text -> Int -> DecreaseStreamRetentionPeriod
- decreaseStreamRetentionPeriod_streamName :: Lens' DecreaseStreamRetentionPeriod 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 #
:: Text | |
-> Int | |
-> DecreaseStreamRetentionPeriod |
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:
$sel:streamName:DecreaseStreamRetentionPeriod'
, decreaseStreamRetentionPeriod_streamName
- The name of the stream to modify.
$sel:retentionPeriodHours:DecreaseStreamRetentionPeriod'
, decreaseStreamRetentionPeriod_retentionPeriodHours
- The new retention period of the stream, in hours. Must be less than the
current retention period.
Request Lenses
decreaseStreamRetentionPeriod_streamName :: Lens' DecreaseStreamRetentionPeriod 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
Eq DecreaseStreamRetentionPeriodResponse Source # | |
Read DecreaseStreamRetentionPeriodResponse Source # | |
Show DecreaseStreamRetentionPeriodResponse Source # | |
Generic DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod type Rep DecreaseStreamRetentionPeriodResponse :: Type -> Type # | |
NFData DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod rnf :: DecreaseStreamRetentionPeriodResponse -> () # | |
type Rep DecreaseStreamRetentionPeriodResponse Source # | |
Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod type Rep DecreaseStreamRetentionPeriodResponse = D1 ('MetaData "DecreaseStreamRetentionPeriodResponse" "Amazonka.Kinesis.DecreaseStreamRetentionPeriod" "libZSservicesZSamazonka-kinesisZSamazonka-kinesis" '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.