amazonka-cloudwatch-logs-1.6.0: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.CreateLogGroup

Contents

Description

Creates a log group with the specified name.

You can create up to 5000 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names must be unique within a region for an AWS account.
  • Log group names can be between 1 and 512 characters long.
  • Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), - (hyphen), / (forward slash), and . (period).

If you associate a AWS Key Management Service (AWS KMS) customer master key (CMK) with the log group, ingested data is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested.

If you attempt to associate a CMK with the log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.

Synopsis

Creating a Request

createLogGroup #

Creates a value of CreateLogGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateLogGroup #

See: createLogGroup smart constructor.

Instances
Eq CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Data CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateLogGroup -> c CreateLogGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateLogGroup #

toConstr :: CreateLogGroup -> Constr #

dataTypeOf :: CreateLogGroup -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateLogGroup) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateLogGroup) #

gmapT :: (forall b. Data b => b -> b) -> CreateLogGroup -> CreateLogGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateLogGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateLogGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateLogGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateLogGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateLogGroup -> m CreateLogGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLogGroup -> m CreateLogGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLogGroup -> m CreateLogGroup #

Read CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Show CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Generic CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Associated Types

type Rep CreateLogGroup :: * -> * #

Hashable CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

ToJSON CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

AWSRequest CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Associated Types

type Rs CreateLogGroup :: * #

ToHeaders CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

ToPath CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

ToQuery CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

NFData CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Methods

rnf :: CreateLogGroup -> () #

type Rep CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

type Rep CreateLogGroup = D1 (MetaData "CreateLogGroup" "Network.AWS.CloudWatchLogs.CreateLogGroup" "amazonka-cloudwatch-logs-1.6.0-mHmnntmnjuIE2O1Ut9psX" False) (C1 (MetaCons "CreateLogGroup'" PrefixI True) (S1 (MetaSel (Just "_clgKmsKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_clgTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_clgLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateLogGroup # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Request Lenses

clgKmsKeyId :: Lens' CreateLogGroup (Maybe Text) #

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - AWS Key Management Service (AWS KMS) .

clgTags :: Lens' CreateLogGroup (HashMap Text Text) #

The key-value pairs to use for the tags.

clgLogGroupName :: Lens' CreateLogGroup Text #

The name of the log group.

Destructuring the Response

createLogGroupResponse :: CreateLogGroupResponse #

Creates a value of CreateLogGroupResponse with the minimum fields required to make a request.

data CreateLogGroupResponse #

See: createLogGroupResponse smart constructor.

Instances
Eq CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Data CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateLogGroupResponse -> c CreateLogGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateLogGroupResponse #

toConstr :: CreateLogGroupResponse -> Constr #

dataTypeOf :: CreateLogGroupResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateLogGroupResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateLogGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateLogGroupResponse -> CreateLogGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateLogGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateLogGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateLogGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateLogGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateLogGroupResponse -> m CreateLogGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLogGroupResponse -> m CreateLogGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateLogGroupResponse -> m CreateLogGroupResponse #

Read CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Show CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Generic CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Associated Types

type Rep CreateLogGroupResponse :: * -> * #

NFData CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

Methods

rnf :: CreateLogGroupResponse -> () #

type Rep CreateLogGroupResponse # 
Instance details

Defined in Network.AWS.CloudWatchLogs.CreateLogGroup

type Rep CreateLogGroupResponse = D1 (MetaData "CreateLogGroupResponse" "Network.AWS.CloudWatchLogs.CreateLogGroup" "amazonka-cloudwatch-logs-1.6.0-mHmnntmnjuIE2O1Ut9psX" False) (C1 (MetaCons "CreateLogGroupResponse'" PrefixI False) (U1 :: * -> *))