Show / Hide Table of Contents

Class CfnSubscriptionFilterProps

Properties for defining a CfnSubscriptionFilter.

Inheritance
System.Object
CfnSubscriptionFilterProps
Implements
ICfnSubscriptionFilterProps
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public class CfnSubscriptionFilterProps : Object, ICfnSubscriptionFilterProps
Syntax (vb)
Public Class CfnSubscriptionFilterProps
    Inherits Object
    Implements ICfnSubscriptionFilterProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var cfnSubscriptionFilterProps = new CfnSubscriptionFilterProps {
    DestinationArn = "destinationArn",
    FilterPattern = "filterPattern",
    LogGroupName = "logGroupName",

    // the properties below are optional
    Distribution = "distribution",
    FilterName = "filterName",
    RoleArn = "roleArn"
};

Synopsis

Constructors

CfnSubscriptionFilterProps()

Properties

DestinationArn

The Amazon Resource Name (ARN) of the destination.

Distribution

The method used to distribute log data to the destination, which can be either random or grouped by log stream.

FilterName

The name of the subscription filter.

FilterPattern

The filtering expressions that restrict what gets delivered to the destination AWS resource.

LogGroupName

The log group to associate with the subscription filter.

RoleArn

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.

Constructors

CfnSubscriptionFilterProps()

public CfnSubscriptionFilterProps()

Properties

DestinationArn

The Amazon Resource Name (ARN) of the destination.

public string DestinationArn { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-destinationarn

Distribution

The method used to distribute log data to the destination, which can be either random or grouped by log stream.

public string Distribution { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-distribution

FilterName

The name of the subscription filter.

public string FilterName { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername

FilterPattern

The filtering expressions that restrict what gets delivered to the destination AWS resource.

public string FilterPattern { get; set; }
Property Value

System.String

Remarks

For more information about the filter pattern syntax, see Filter and Pattern Syntax .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filterpattern

LogGroupName

The log group to associate with the subscription filter.

public string LogGroupName { get; set; }
Property Value

System.String

Remarks

All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-loggroupname

RoleArn

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.

public string RoleArn { get; set; }
Property Value

System.String

Remarks

You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-rolearn

Implements

ICfnSubscriptionFilterProps
Back to top Generated by DocFX