Class CfnSubscriptionFilterProps
Properties for defining a CfnSubscriptionFilter
.
Inheritance
Implements
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
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
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
FilterName
The name of the subscription filter.
public string FilterName { get; set; }
Property Value
System.String
Remarks
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 .
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.
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.