Smaws_Client_CloudWatchLogs.CreateLogGroupCreates a log group with the specified name. You can create up to 1,000,000 log groups per Region per account.
You must use the following guidelines when naming a log group:
aws/When you create a log group, by default the log events in the log group do not expire. To set a retention policy so that events expire and are deleted after a specified time, use PutRetentionPolicy.
If you associate an KMS key with the log group, ingested data is encrypted using the KMS key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.
If you attempt to associate a KMS key with the log group but the KMS key does not exist or the KMS key is disabled, you receive an InvalidParameterException error.
CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric KMS key with your log group. For more information, see Using Symmetric and Asymmetric Keys.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceAlreadyExistsException of Types.resource_already_exists_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_log_group_request ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceAlreadyExistsException of
Types.resource_already_exists_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_log_group_request ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParameterException of Types.invalid_parameter_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OperationAbortedException of Types.operation_aborted_exception
| `ResourceAlreadyExistsException of
Types.resource_already_exists_exception
| `ServiceUnavailableException of Types.service_unavailable_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result