libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
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.CloudWatchLogs.PutRetentionPolicy

Description

Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.

Synopsis

Creating a Request

data PutRetentionPolicy Source #

See: newPutRetentionPolicy smart constructor.

Constructors

PutRetentionPolicy' 

Fields

Instances

Instances details
Eq PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Read PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Show PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Generic PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Associated Types

type Rep PutRetentionPolicy :: Type -> Type #

NFData PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Methods

rnf :: PutRetentionPolicy -> () #

Hashable PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

ToJSON PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

AWSRequest PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Associated Types

type AWSResponse PutRetentionPolicy #

ToHeaders PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

ToPath PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

ToQuery PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

type Rep PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

type Rep PutRetentionPolicy = D1 ('MetaData "PutRetentionPolicy" "Amazonka.CloudWatchLogs.PutRetentionPolicy" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "PutRetentionPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "retentionInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))
type AWSResponse PutRetentionPolicy Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

newPutRetentionPolicy Source #

Create a value of PutRetentionPolicy 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:logGroupName:PutRetentionPolicy', putRetentionPolicy_logGroupName - The name of the log group.

$sel:retentionInDays:PutRetentionPolicy', putRetentionPolicy_retentionInDays - Undocumented member.

Request Lenses

Destructuring the Response

data PutRetentionPolicyResponse Source #

See: newPutRetentionPolicyResponse smart constructor.

Instances

Instances details
Eq PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Read PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Show PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Generic PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

Associated Types

type Rep PutRetentionPolicyResponse :: Type -> Type #

NFData PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

type Rep PutRetentionPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.PutRetentionPolicy

type Rep PutRetentionPolicyResponse = D1 ('MetaData "PutRetentionPolicyResponse" "Amazonka.CloudWatchLogs.PutRetentionPolicy" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "PutRetentionPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutRetentionPolicyResponse :: PutRetentionPolicyResponse Source #

Create a value of PutRetentionPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.