stratosphere-0.2.2: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.LogGroup

Description

The AWS::Logs::LogGroup resource creates an Amazon CloudWatch Logs log group that defines common properties for log streams, such as their retention and access control rules. Each log stream must belong to one log group.

Synopsis

Documentation

data LogGroup Source #

Full data type definition for LogGroup. See logGroup for a more convenient constructor.

Instances

Show LogGroup Source # 
Generic LogGroup Source # 

Associated Types

type Rep LogGroup :: * -> * #

Methods

from :: LogGroup -> Rep LogGroup x #

to :: Rep LogGroup x -> LogGroup #

ToJSON LogGroup Source # 
FromJSON LogGroup Source # 
type Rep LogGroup Source # 
type Rep LogGroup = D1 (MetaData "LogGroup" "Stratosphere.Resources.LogGroup" "stratosphere-0.2.2-Fnop5S0NvsvBmp7LUeJWuv" False) (C1 (MetaCons "LogGroup" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_logGroupLogGroupName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_logGroupRetentionInDays") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Integer'))))))

logGroup :: LogGroup Source #

Constructor for LogGroup containing required fields as arguments.

lgLogGroupName :: Lens' LogGroup (Maybe (Val Text)) Source #

A name for the log group. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name. For more information, see Name Type. Important If you specify a name, you cannot do updates that require this resource to be replaced. You can still do updates that require no or some interruption. If you must replace the resource, specify a new name.

lgRetentionInDays :: Lens' LogGroup (Maybe (Val Integer')) Source #

The number of days log events are kept in CloudWatch Logs. When a log event expires, CloudWatch Logs automatically deletes it. For valid values, see PutRetentionPolicy in the Amazon CloudWatch Logs API Reference.