Skip to main content

subscription_filter

Gets an individual subscription_filter resource

Overview

Namesubscription_filter
TypeResource
Descriptionsubscription_filter
Idawscc.logs.subscription_filter

Fields

NameDatatypeDescription
filter_namestringThe name of the filter generated by resource.
destination_arnstringThe Amazon Resource Name (ARN) of the destination.
filter_patternstringThe filtering expressions that restrict what gets delivered to the destination AWS resource.
log_group_namestringExisting log group that you want to associate with this filter.
role_arnstringThe 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 for cross-account delivery.
distributionstringThe method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
filter_name,
destination_arn,
filter_pattern,
log_group_name,
role_arn,
distribution
FROM awscc.logs.subscription_filter
WHERE data__Identifier = '<FilterName>|<LogGroupName>';

Permissions

To operate on the subscription_filter resource, the following permissions are required:

Read

logs:DescribeSubscriptionFilters

Update

iam:PassRole,
logs:PutSubscriptionFilter,
logs:DescribeSubscriptionFilters

Delete

logs:DeleteSubscriptionFilter