AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Container for the parameters to the PutSubscriptionFilter operation. 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 requests and have them delivered to a specific destination. Currently, the supported destinations are:

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

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudWatchLogs.AmazonCloudWatchLogsRequest
      Amazon.CloudWatchLogs.Model.PutSubscriptionFilterRequest

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class PutSubscriptionFilterRequest : AmazonCloudWatchLogsRequest
         IRequestEvents

The PutSubscriptionFilterRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DestinationArn System.String Gets and sets the property DestinationArn.

The ARN of the destination to deliver matching log events to. 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 (used via an ARN of Destination) belonging to a different account, for cross-account delivery.
  • An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
  • An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.

Public Property FilterName System.String Gets and sets the property FilterName.

A name for the subscription filter.

Public Property FilterPattern System.String Gets and sets the property FilterPattern.

A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.

Public Property LogGroupName System.String Gets and sets the property LogGroupName.

The name of the log group to associate the subscription filter with.

Public Property RoleArn System.String Gets and sets the property RoleArn.

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination (used via an ARN of Destination) for cross-account delivery.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5