C# Class Amazon.CloudWatchLogs.Model.PutRetentionPolicyRequest

Container for the parameters to the PutRetentionPolicy operation. Sets the retention of the specified log group. A retention policy allows you to configure the number of days you want to retain log events in the specified log group.
Inheritance: AmazonCloudWatchLogsRequest
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
PutRetentionPolicyRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

PutRetentionPolicyRequest ( string logGroupName, int retentionInDays ) : System

Instantiates PutRetentionPolicyRequest with the parameterized properties

Private Methods

Method Description
IsSetLogGroupName ( ) : bool
IsSetRetentionInDays ( ) : bool

Method Details

PutRetentionPolicyRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public PutRetentionPolicyRequest ( ) : System
return System

PutRetentionPolicyRequest() public method

Instantiates PutRetentionPolicyRequest with the parameterized properties
public PutRetentionPolicyRequest ( string logGroupName, int retentionInDays ) : System
logGroupName string The name of the log group.
retentionInDays int Sets the PutRetentionPolicyRequest RetentionInDays property
return System