libZSservicesZSamazonka-kinesisZSamazonka-kinesis
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Description

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

Creating a Request

data DecreaseStreamRetentionPeriod Source #

Represents the input for DecreaseStreamRetentionPeriod.

See: newDecreaseStreamRetentionPeriod smart constructor.

Constructors

DecreaseStreamRetentionPeriod' 

Fields

Instances

Instances details
Eq DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Read DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Show DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Generic DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Associated Types

type Rep DecreaseStreamRetentionPeriod :: Type -> Type #

NFData DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Hashable DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

ToJSON DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

AWSRequest DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

ToHeaders DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

ToPath DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

ToQuery DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriod = D1 ('MetaData "DecreaseStreamRetentionPeriod" "Amazonka.Kinesis.DecreaseStreamRetentionPeriod" "libZSservicesZSamazonka-kinesisZSamazonka-kinesis" 'False) (C1 ('MetaCons "DecreaseStreamRetentionPeriod'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "retentionPeriodHours") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))
type AWSResponse DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

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:

$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_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 #

Instances

Instances details
Eq DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Read DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Show DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Generic DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

NFData DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriodResponse Source # 
Instance details

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.