class
Amazonite::CloudWatchLogs::LogGroup
- Amazonite::CloudWatchLogs::LogGroup
- Reference
- Object
Overview
Represents a log group.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/log_group.crConstructors
- .new(pull : JSON::PullParser)
- .new(log_group_name : String | Nil = nil, creation_time : Int64 | Nil = nil, retention_in_days : Int32 | Nil = nil, metric_filter_count : Int32 | Nil = nil, arn : String | Nil = nil, stored_bytes : Int64 | Nil = nil, kms_key_id : String | Nil = nil, data_protection_status : DataProtectionStatus | Nil = nil, inherited_properties : Array(InheritedProperty) | Nil = nil, log_group_class : LogGroupClass | Nil = nil, log_group_arn : String | Nil = nil, deletion_protection_enabled : Bool | Nil = nil, bearer_token_authentication_enabled : Bool | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#arn : String | Nil
The Amazon Resource Name (ARN) of the log group.
-
#arn=(arn : String | Nil)
The Amazon Resource Name (ARN) of the log group.
-
#bearer_token_authentication_enabled : Bool | Nil
Indicates whether bearer token authentication is enabled for this log group.
-
#bearer_token_authentication_enabled=(bearer_token_authentication_enabled : Bool | Nil)
Indicates whether bearer token authentication is enabled for this log group.
-
#creation_time : Int64 | Nil
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
-
#creation_time=(creation_time : Int64 | Nil)
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
-
#data_protection_status : DataProtectionStatus | Nil
Displays whether this log group has a protection policy, or whether it had one in the past.
-
#data_protection_status=(data_protection_status : DataProtectionStatus | Nil)
Displays whether this log group has a protection policy, or whether it had one in the past.
-
#deletion_protection_enabled : Bool | Nil
Indicates whether deletion protection is enabled for this log group.
-
#deletion_protection_enabled=(deletion_protection_enabled : Bool | Nil)
Indicates whether deletion protection is enabled for this log group.
-
#hash(hasher)
See
Object#hash(hasher) -
#inherited_properties : Array(InheritedProperty) | Nil
Displays all the properties that this log group has inherited from account-level settings.
-
#inherited_properties=(inherited_properties : Array(InheritedProperty) | Nil)
Displays all the properties that this log group has inherited from account-level settings.
-
#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_arn : String | Nil
The Amazon Resource Name (ARN) of the log group.
-
#log_group_arn=(log_group_arn : String | Nil)
The Amazon Resource Name (ARN) of the log group.
-
#log_group_class : LogGroupClass | Nil
This specifies the log group class for this log group.
-
#log_group_class=(log_group_class : LogGroupClass | Nil)
This specifies the log group class for this log group.
-
#log_group_name : String | Nil
The name of the log group.
-
#log_group_name=(log_group_name : String | Nil)
The name of the log group.
-
#metric_filter_count : Int32 | Nil
The number of metric filters.
-
#metric_filter_count=(metric_filter_count : Int32 | Nil)
The number of metric filters.
- #retention_in_days : Int32 | Nil
- #retention_in_days=(retention_in_days : Int32 | Nil)
-
#stored_bytes : Int64 | Nil
The number of bytes stored.
-
#stored_bytes=(stored_bytes : Int64 | Nil)
The number of bytes stored.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing
:* after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API
actions. The exception is when specifying permissions for
TagResource,
UntagResource,
and
ListTagsForResource.
The permissions for those three actions require the ARN version that doesn't include a trailing
:*.
The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing
:* after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API
actions. The exception is when specifying permissions for
TagResource,
UntagResource,
and
ListTagsForResource.
The permissions for those three actions require the ARN version that doesn't include a trailing
:*.
Indicates whether bearer token authentication is enabled for this log group. When enabled, bearer token authentication is allowed on operations until it is explicitly disabled.
Indicates whether bearer token authentication is enabled for this log group. When enabled, bearer token authentication is allowed on operations until it is explicitly disabled.
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.
Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.
Displays all the properties that this log group has inherited from account-level settings.
Displays all the properties that this log group has inherited from account-level settings.
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a
trailing :* after the log group name.
Use this version to refer to the ARN in the following situations:
-
In the
logGroupIdentifierinput field in many CloudWatch Logs APIs. -
In the
resourceArnfield in tagging APIs -
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a
trailing :* after the log group name.
Use this version to refer to the ARN in the following situations:
-
In the
logGroupIdentifierinput field in many CloudWatch Logs APIs. -
In the
resourceArnfield in tagging APIs -
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
This specifies 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.
For details about the features supported by the Standard and Infrequent Access classes, see Log classes
This specifies 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.
For details about the features supported by the Standard and Infrequent Access classes, see Log classes