Interface ICfnSubscriptionFilterProps
Properties for defining a CfnSubscriptionFilter
.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnSubscriptionFilterProps
Syntax (vb)
Public Interface ICfnSubscriptionFilterProps
Remarks
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
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. |
Properties
DestinationArn
The Amazon Resource Name (ARN) of the destination.
string DestinationArn { get; }
Property Value
System.String
Remarks
Distribution
The method used to distribute log data to the destination, which can be either random or grouped by log stream.
virtual string Distribution { get; }
Property Value
System.String
Remarks
FilterName
The name of the subscription filter.
virtual string FilterName { get; }
Property Value
System.String
Remarks
FilterPattern
The filtering expressions that restrict what gets delivered to the destination AWS resource.
string FilterPattern { get; }
Property Value
System.String
Remarks
For more information about the filter pattern syntax, see Filter and Pattern Syntax .
LogGroupName
The log group to associate with the subscription filter.
string LogGroupName { get; }
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.
RoleArn
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.
virtual string RoleArn { get; }
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.