Class SubscriptionFilter.Builder
java.lang.Object
software.amazon.awscdk.services.logs.SubscriptionFilter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubscriptionFilter>
- Enclosing class:
SubscriptionFilter
@Stability(Stable)
public static final class SubscriptionFilter.Builder
extends Object
implements software.amazon.jsii.Builder<SubscriptionFilter>
A fluent builder for
SubscriptionFilter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SubscriptionFilter.Builder
destination
(ILogSubscriptionDestination destination) The destination to send the filtered events to.filterPattern
(IFilterPattern filterPattern) Log events matching this pattern will be sent to the destination.The log group to create the subscription on.
-
Method Details
-
create
@Stability(Stable) public static SubscriptionFilter.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
SubscriptionFilter.Builder
.
-
destination
@Stability(Stable) public SubscriptionFilter.Builder destination(ILogSubscriptionDestination destination) The destination to send the filtered events to.For example, a Kinesis stream or a Lambda function.
- Parameters:
destination
- The destination to send the filtered events to. This parameter is required.- Returns:
this
-
filterPattern
Log events matching this pattern will be sent to the destination.- Parameters:
filterPattern
- Log events matching this pattern will be sent to the destination. This parameter is required.- Returns:
this
-
logGroup
The log group to create the subscription on.- Parameters:
logGroup
- The log group to create the subscription on. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubscriptionFilter>
- Returns:
- a newly built instance of
SubscriptionFilter
.
-