amazonka-cloudwatch-logs-1.3.1: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.PutSubscriptionFilter

Contents

Description

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:

  • A 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.

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

See: AWS API Reference for PutSubscriptionFilter.

Synopsis

Creating a Request

putSubscriptionFilter Source

Creates a value of PutSubscriptionFilter with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

psfRoleARN :: Lens' PutSubscriptionFilter (Maybe Text) Source

The ARN of an IAM role that grants Amazon 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.

psfLogGroupName :: Lens' PutSubscriptionFilter Text Source

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

psfFilterName :: Lens' PutSubscriptionFilter Text Source

A name for the subscription filter.

psfFilterPattern :: Lens' PutSubscriptionFilter Text Source

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

psfDestinationARN :: Lens' PutSubscriptionFilter Text Source

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • A 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.

Destructuring the Response

putSubscriptionFilterResponse :: PutSubscriptionFilterResponse Source

Creates a value of PutSubscriptionFilterResponse with the minimum fields required to make a request.