amazonka-kinesis-2.0: Amazon Kinesis SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

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

Creating a Request

data DecreaseStreamRetentionPeriod Source #

Represents the input for DecreaseStreamRetentionPeriod.

See: newDecreaseStreamRetentionPeriod smart constructor.

Constructors

DecreaseStreamRetentionPeriod' 

Fields

Instances

Instances details
ToJSON 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

AWSRequest 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 #

Read DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Show DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

NFData DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Eq DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Hashable DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

type AWSResponse 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" "amazonka-kinesis-2.0-AW1spVPMUGf3LUqQQ22bci" 'False) (C1 ('MetaCons "DecreaseStreamRetentionPeriod'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "retentionPeriodHours") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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
Generic 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

NFData DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Amazonka.Kinesis.DecreaseStreamRetentionPeriod

Eq 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" "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.