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

BeginPutRetentionPolicy() public method

Initiates the asynchronous execution of the PutRetentionPolicy operation.
public BeginPutRetentionPolicy ( PutRetentionPolicyRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatchLogs.Model.PutRetentionPolicyRequest Container for the necessary parameters to execute the PutRetentionPolicy operation on AmazonCloudWatchLogsClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult
        public IAsyncResult BeginPutRetentionPolicy(PutRetentionPolicyRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new PutRetentionPolicyRequestMarshaller();
            var unmarshaller = PutRetentionPolicyResponseUnmarshaller.Instance;

            return BeginInvoke<PutRetentionPolicyRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
AmazonCloudWatchLogsClient