amazonka-chime-2.0: Amazon Chime 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.Chime.PutRetentionSettings

Description

Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide.

To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.

Synopsis

Creating a Request

data PutRetentionSettings Source #

See: newPutRetentionSettings smart constructor.

Constructors

PutRetentionSettings' 

Fields

Instances

Instances details
ToJSON PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

ToHeaders PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

ToPath PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

ToQuery PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

AWSRequest PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Associated Types

type AWSResponse PutRetentionSettings #

Generic PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Associated Types

type Rep PutRetentionSettings :: Type -> Type #

Read PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Show PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

NFData PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Methods

rnf :: PutRetentionSettings -> () #

Eq PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Hashable PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

type AWSResponse PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

type Rep PutRetentionSettings Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

type Rep PutRetentionSettings = D1 ('MetaData "PutRetentionSettings" "Amazonka.Chime.PutRetentionSettings" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "PutRetentionSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "retentionSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RetentionSettings)))

newPutRetentionSettings Source #

Create a value of PutRetentionSettings 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:

PutRetentionSettings, putRetentionSettings_accountId - The Amazon Chime account ID.

PutRetentionSettings, putRetentionSettings_retentionSettings - The retention settings.

Request Lenses

Destructuring the Response

data PutRetentionSettingsResponse Source #

See: newPutRetentionSettingsResponse smart constructor.

Constructors

PutRetentionSettingsResponse' 

Fields

Instances

Instances details
Generic PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Associated Types

type Rep PutRetentionSettingsResponse :: Type -> Type #

Read PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Show PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

NFData PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

Eq PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

type Rep PutRetentionSettingsResponse Source # 
Instance details

Defined in Amazonka.Chime.PutRetentionSettings

type Rep PutRetentionSettingsResponse = D1 ('MetaData "PutRetentionSettingsResponse" "Amazonka.Chime.PutRetentionSettings" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "PutRetentionSettingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "initiateDeletionTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "retentionSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionSettings)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newPutRetentionSettingsResponse Source #

Create a value of PutRetentionSettingsResponse 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:initiateDeletionTimestamp:PutRetentionSettingsResponse', putRetentionSettingsResponse_initiateDeletionTimestamp - The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format.

PutRetentionSettings, putRetentionSettingsResponse_retentionSettings - The retention settings.

$sel:httpStatus:PutRetentionSettingsResponse', putRetentionSettingsResponse_httpStatus - The response's http status code.

Response Lenses

putRetentionSettingsResponse_initiateDeletionTimestamp :: Lens' PutRetentionSettingsResponse (Maybe UTCTime) Source #

The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format.