cloudwatchlogs_create_log_group: Creates a log group with the specified name

View source: R/cloudwatchlogs_operations.R

cloudwatchlogs_create_log_groupR Documentation

Creates a log group with the specified name

Description

Creates a log group with the specified name. You can create up to 20,000 log groups per account.

See https://www.paws-r-sdk.com/docs/cloudwatchlogs_create_log_group/ for full documentation.

Usage

cloudwatchlogs_create_log_group(logGroupName, kmsKeyId = NULL, tags = NULL)

Arguments

logGroupName

[required] The name of the log group.

kmsKeyId

The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.

tags

The key-value pairs to use for the tags.

You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the logs:TagResource or logs:TagLogGroup permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.


paws.management documentation built on Sept. 12, 2023, 1:06 a.m.