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

Copyright(c) 2013-2017 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 Source #

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 Source #

See: createLogGroup smart constructor.

Instances

Eq CreateLogGroup Source # 
Data CreateLogGroup Source # 

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 Source # 
Show CreateLogGroup Source # 
Generic CreateLogGroup Source # 

Associated Types

type Rep CreateLogGroup :: * -> * #

Hashable CreateLogGroup Source # 
ToJSON CreateLogGroup Source # 
NFData CreateLogGroup Source # 

Methods

rnf :: CreateLogGroup -> () #

AWSRequest CreateLogGroup Source # 
ToQuery CreateLogGroup Source # 
ToPath CreateLogGroup Source # 
ToHeaders CreateLogGroup Source # 
type Rep CreateLogGroup Source # 
type Rep CreateLogGroup = D1 (MetaData "CreateLogGroup" "Network.AWS.CloudWatchLogs.CreateLogGroup" "amazonka-cloudwatch-logs-1.5.0-3vuxaAoYUATHD7OLMfoSU1" False) (C1 (MetaCons "CreateLogGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_clgKmsKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_clgTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_clgLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateLogGroup Source # 

Request Lenses

clgKmsKeyId :: Lens' CreateLogGroup (Maybe Text) Source #

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) Source #

The key-value pairs to use for the tags.

clgLogGroupName :: Lens' CreateLogGroup Text Source #

The name of the log group.

Destructuring the Response

createLogGroupResponse :: CreateLogGroupResponse Source #

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

data CreateLogGroupResponse Source #

See: createLogGroupResponse smart constructor.

Instances

Eq CreateLogGroupResponse Source # 
Data CreateLogGroupResponse Source # 

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 Source # 
Show CreateLogGroupResponse Source # 
Generic CreateLogGroupResponse Source # 
NFData CreateLogGroupResponse Source # 

Methods

rnf :: CreateLogGroupResponse -> () #

type Rep CreateLogGroupResponse Source # 
type Rep CreateLogGroupResponse = D1 (MetaData "CreateLogGroupResponse" "Network.AWS.CloudWatchLogs.CreateLogGroup" "amazonka-cloudwatch-logs-1.5.0-3vuxaAoYUATHD7OLMfoSU1" False) (C1 (MetaCons "CreateLogGroupResponse'" PrefixI False) U1)