CmdID

CmdID / aws / aws logs

aws logs create-log-group

Creates a log group with the specified name. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a log group

The following create-log-group example creates a log group named my-logs.

aws logs create-log-group --log-group-name my-logsIdentify
--log-group-nameA name for the log group.

This command produces no output.

For more information, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide.

Options

5 in the AWS CLI reference
--deletion-protection-enabledUse this parameter to enable deletion protection for the new log group.
--kms-key-idThe Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
--log-group-classUse this parameter to specify the log group class for this log group.
--log-group-nameA name for the log group.
--tagsThe key-value pairs to use for the tags.