Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
Creating a Request
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:
clgKmsKeyId
- 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
- The key-value pairs to use for the tags.clgLogGroupName
- The name of the log group.
data CreateLogGroup Source #
See: createLogGroup
smart constructor.
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.