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

PutDestination() public method

Creates or updates a destination. A destination encapsulates a physical resource (such as a Kinesis stream) and enables you to subscribe to a real-time stream of log events of a different account, ingested using PutLogEvents. Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.

A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

/// A parameter is specified incorrectly. /// /// Multiple requests to update the same resource were in conflict. /// /// The service cannot complete the request. ///
public PutDestination ( PutDestinationRequest request ) : PutDestinationResponse
request Amazon.CloudWatchLogs.Model.PutDestinationRequest Container for the necessary parameters to execute the PutDestination service method.
return Amazon.CloudWatchLogs.Model.PutDestinationResponse
        public PutDestinationResponse PutDestination(PutDestinationRequest request)
        {
            var marshaller = new PutDestinationRequestMarshaller();
            var unmarshaller = PutDestinationResponseUnmarshaller.Instance;

            return Invoke<PutDestinationRequest,PutDestinationResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient