Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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:
- 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.
Currently there can only be one subscription filter associated with a log group.
- putSubscriptionFilter :: Text -> Text -> Text -> Text -> PutSubscriptionFilter
- data PutSubscriptionFilter
- psfRoleARN :: Lens' PutSubscriptionFilter (Maybe Text)
- psfLogGroupName :: Lens' PutSubscriptionFilter Text
- psfFilterName :: Lens' PutSubscriptionFilter Text
- psfFilterPattern :: Lens' PutSubscriptionFilter Text
- psfDestinationARN :: Lens' PutSubscriptionFilter Text
- putSubscriptionFilterResponse :: PutSubscriptionFilterResponse
- data PutSubscriptionFilterResponse
Creating a Request
putSubscriptionFilter Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> PutSubscriptionFilter |
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:
data PutSubscriptionFilter Source #
See: putSubscriptionFilter
smart constructor.
Request Lenses
psfRoleARN :: Lens' PutSubscriptionFilter (Maybe Text) Source #
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.
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:
- 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.
Destructuring the Response
putSubscriptionFilterResponse :: PutSubscriptionFilterResponse Source #
Creates a value of PutSubscriptionFilterResponse
with the minimum fields required to make a request.
data PutSubscriptionFilterResponse Source #
See: putSubscriptionFilterResponse
smart constructor.