libZSservicesZSamazonka-configZSamazonka-config
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.Config.PutRetentionConfiguration

Description

Creates and updates the retention configuration with details about retention period (number of days) that Config stores your historical information. The API creates the RetentionConfiguration object and names the object as default. When you have a RetentionConfiguration object named default, calling the API modifies the default object.

Currently, Config supports only one retention configuration per region in your account.

Synopsis

Creating a Request

data PutRetentionConfiguration Source #

See: newPutRetentionConfiguration smart constructor.

Constructors

PutRetentionConfiguration' 

Fields

  • retentionPeriodInDays :: Natural

    Number of days Config stores your historical information.

    Currently, only applicable to the configuration item history.

Instances

Instances details
Eq PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Read PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Show PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Generic PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Associated Types

type Rep PutRetentionConfiguration :: Type -> Type #

NFData PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Hashable PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

ToJSON PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

AWSRequest PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

ToHeaders PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

ToPath PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

ToQuery PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

type Rep PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

type Rep PutRetentionConfiguration = D1 ('MetaData "PutRetentionConfiguration" "Amazonka.Config.PutRetentionConfiguration" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutRetentionConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retentionPeriodInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))
type AWSResponse PutRetentionConfiguration Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

newPutRetentionConfiguration Source #

Create a value of PutRetentionConfiguration 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:retentionPeriodInDays:PutRetentionConfiguration', putRetentionConfiguration_retentionPeriodInDays - Number of days Config stores your historical information.

Currently, only applicable to the configuration item history.

Request Lenses

putRetentionConfiguration_retentionPeriodInDays :: Lens' PutRetentionConfiguration Natural Source #

Number of days Config stores your historical information.

Currently, only applicable to the configuration item history.

Destructuring the Response

data PutRetentionConfigurationResponse Source #

See: newPutRetentionConfigurationResponse smart constructor.

Constructors

PutRetentionConfigurationResponse' 

Fields

Instances

Instances details
Eq PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Read PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Show PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Generic PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

Associated Types

type Rep PutRetentionConfigurationResponse :: Type -> Type #

NFData PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

type Rep PutRetentionConfigurationResponse Source # 
Instance details

Defined in Amazonka.Config.PutRetentionConfiguration

type Rep PutRetentionConfigurationResponse = D1 ('MetaData "PutRetentionConfigurationResponse" "Amazonka.Config.PutRetentionConfiguration" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutRetentionConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retentionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutRetentionConfigurationResponse Source #

Create a value of PutRetentionConfigurationResponse 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:retentionConfiguration:PutRetentionConfigurationResponse', putRetentionConfigurationResponse_retentionConfiguration - Returns a retention configuration object.

$sel:httpStatus:PutRetentionConfigurationResponse', putRetentionConfigurationResponse_httpStatus - The response's http status code.

Response Lenses