AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates a log group with the specified name. You can create up to 20,000 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), '.' (period), and '#' (number sign)
When you create a log group, by default the log events in the log group never expire. To set a retention policy so that events expire and are deleted after a specified time, use PutRetentionPolicy.
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 receive an
CloudWatch Logs supports only symmetric CMKs. Do not associate an asymmetric CMK with your log group. For more information, see Using Symmetric and Asymmetric Keys.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateLogGroup and EndCreateLogGroup.
public virtual Task<CreateLogGroupResponse> CreateLogGroupAsync( CreateLogGroupRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the CreateLogGroup service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|InvalidParameterException||A parameter is specified incorrectly.|
|LimitExceededException||You have reached the maximum number of resources that can be created.|
|OperationAbortedException||Multiple requests to update the same resource were in conflict.|
|ResourceAlreadyExistsException||The specified resource already exists.|
|ServiceUnavailableException||The service cannot complete the request.|
.NET Core App:
Supported in: 3.1
Supported in: 2.0, 1.3
Supported in: 4.5