class
Amazonite::CloudWatchLogs::CreateLogGroupRequest
- Amazonite::CloudWatchLogs::CreateLogGroupRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/create_log_group_request.crConstructors
- .new(pull : JSON::PullParser)
- .new(log_group_name : String, kms_key_id : String | Nil = nil, tags : Hash(String, String) | Nil = nil, log_group_class : LogGroupClass | Nil = nil, deletion_protection_enabled : Bool | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#deletion_protection_enabled : Bool | Nil
Use this parameter to enable deletion protection for the new log group.
-
#deletion_protection_enabled=(deletion_protection_enabled : Bool | Nil)
Use this parameter to enable deletion protection for the new log group.
-
#hash(hasher)
See
Object#hash(hasher) -
#kms_key_id : String | Nil
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
-
#kms_key_id=(kms_key_id : String | Nil)
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
-
#log_group_class : LogGroupClass | Nil
Use this parameter to specify the log group class for this log group.
-
#log_group_class=(log_group_class : LogGroupClass | Nil)
Use this parameter to specify the log group class for this log group.
-
#log_group_name : String
A name for the log group.
-
#log_group_name=(log_group_name : String)
A name for the log group.
-
#tags : Hash(String, String) | Nil
The key-value pairs to use for the tags.
-
#tags=(tags : Hash(String, String) | Nil)
The key-value pairs to use for the tags.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Use this parameter to enable deletion protection for the new log group. When enabled on a log group, deletion protection blocks all deletion operations until it is explicitly disabled. By default log groups are created without deletion protection enabled.
Use this parameter to enable deletion protection for the new log group. When enabled on a log group, deletion protection blocks all deletion operations until it is explicitly disabled. By default log groups are created without deletion protection enabled.
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.
Use this parameter to specify the log group class for this log group. There are three classes:
-
The
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog class supports a subset of CloudWatch Logs features and incurs lower costs. -
Use the
Deliverylog class only for delivering Lambda logs to store in Amazon S3 or Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch Logs Insights queries.
If you omit this parameter, the default of STANDARD is used.
The value of logGroupClass can't be changed after a log group is created.
For details about the features supported by each class, see Log classes
Use this parameter to specify the log group class for this log group. There are three classes:
-
The
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog class supports a subset of CloudWatch Logs features and incurs lower costs. -
Use the
Deliverylog class only for delivering Lambda logs to store in Amazon S3 or Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch Logs Insights queries.
If you omit this parameter, the default of STANDARD is used.
The value of logGroupClass can't be changed after a log group is created.
For details about the features supported by each class, see Log classes
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.
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.