Interface CfnSubscriptionFilterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSubscriptionFilterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)",
date="2024-05-24T02:42:40.501Z")
@Stability(Stable)
public interface CfnSubscriptionFilterProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnSubscriptionFilter
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.logs.*; CfnSubscriptionFilterProps cfnSubscriptionFilterProps = CfnSubscriptionFilterProps.builder() .destinationArn("destinationArn") .filterPattern("filterPattern") .logGroupName("logGroupName") // the properties below are optional .distribution("distribution") .filterName("filterName") .roleArn("roleArn") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnSubscriptionFilterProps
static final class
An implementation forCfnSubscriptionFilterProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The Amazon Resource Name (ARN) of the destination.default String
The method used to distribute log data to the destination, which can be either random or grouped by log stream.default String
The name of the subscription filter.The filtering expressions that restrict what gets delivered to the destination AWS resource.The log group to associate with the subscription filter.default String
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestinationArn
The Amazon Resource Name (ARN) of the destination.- See Also:
-
getFilterPattern
The filtering expressions that restrict what gets delivered to the destination AWS resource.For more information about the filter pattern syntax, see Filter and Pattern Syntax .
- See Also:
-
getLogGroupName
The log group to associate with the subscription filter.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.
- See Also:
-
getDistribution
The method used to distribute log data to the destination, which can be either random or grouped by log stream.- See Also:
-
getFilterName
The name of the subscription filter.- See Also:
-
getRoleArn
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 for cross-account delivery.
- See Also:
-
builder
- Returns:
- a
CfnSubscriptionFilterProps.Builder
ofCfnSubscriptionFilterProps
-