Amazon.CloudWatchLogs.AmazonCloudWatchLogsClient.DeleteRetentionPolicy C# (CSharp) Method

DeleteRetentionPolicy() public method

Deletes the specified retention policy.

Log events do not expire if they belong to log groups without a retention policy.

/// A parameter is specified incorrectly. /// /// Multiple requests to update the same resource were in conflict. /// /// The specified resource does not exist. /// /// The service cannot complete the request. ///
public DeleteRetentionPolicy ( DeleteRetentionPolicyRequest request ) : Amazon.CloudWatchLogs.Model.DeleteRetentionPolicyResponse
request Amazon.CloudWatchLogs.Model.DeleteRetentionPolicyRequest Container for the necessary parameters to execute the DeleteRetentionPolicy service method.
return Amazon.CloudWatchLogs.Model.DeleteRetentionPolicyResponse
        public DeleteRetentionPolicyResponse DeleteRetentionPolicy(DeleteRetentionPolicyRequest request)
        {
            var marshaller = new DeleteRetentionPolicyRequestMarshaller();
            var unmarshaller = DeleteRetentionPolicyResponseUnmarshaller.Instance;

            return Invoke<DeleteRetentionPolicyRequest,DeleteRetentionPolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient