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

PutSubscriptionFilter() public method

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. Currently, the supported destinations are:
  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination that belongs to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose stream that belongs to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.

There can only be one subscription filter associated with a log group.

/// A parameter is specified incorrectly. /// /// You have reached the maximum number of resources that can be created. /// /// Multiple requests to update the same resource were in conflict. /// /// The specified resource does not exist. /// /// The service cannot complete the request. ///
public PutSubscriptionFilter ( PutSubscriptionFilterRequest request ) : PutSubscriptionFilterResponse
request Amazon.CloudWatchLogs.Model.PutSubscriptionFilterRequest Container for the necessary parameters to execute the PutSubscriptionFilter service method.
return PutSubscriptionFilterResponse
        public PutSubscriptionFilterResponse PutSubscriptionFilter(PutSubscriptionFilterRequest request)
        {
            var marshaller = new PutSubscriptionFilterRequestMarshaller();
            var unmarshaller = PutSubscriptionFilterResponseUnmarshaller.Instance;

            return Invoke<PutSubscriptionFilterRequest,PutSubscriptionFilterResponse>(request, marshaller, unmarshaller);
        }
AmazonCloudWatchLogsClient