Class: Aws::CloudWatchLogs::Types::PutRetentionPolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::PutRetentionPolicyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudwatchlogs/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#log_group_name ⇒ String
The name of the log group.
-
#retention_in_days ⇒ Integer
The number of days to retain the log events in the specified log group.
Instance Attribute Details
#log_group_name ⇒ String
The name of the log group.
5782 5783 5784 5785 5786 5787 |
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 5782 class PutRetentionPolicyRequest < Struct.new( :log_group_name, :retention_in_days) SENSITIVE = [] include Aws::Structure end |
#retention_in_days ⇒ Integer
The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.
To set a log group so that its log events do not expire, use [DeleteRetentionPolicy].
[1]: docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html
5782 5783 5784 5785 5786 5787 |
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 5782 class PutRetentionPolicyRequest < Struct.new( :log_group_name, :retention_in_days) SENSITIVE = [] include Aws::Structure end |