Interface SubscriptionFilterOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
SubscriptionFilterProps
All Known Implementing Classes:
SubscriptionFilterOptions.Jsii$Proxy, SubscriptionFilterProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-15T01:32:50.771Z") @Stability(Stable) public interface SubscriptionFilterOptions extends software.amazon.jsii.JsiiSerializable
Properties for a new SubscriptionFilter created from a LogGroup.

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.*;
 IFilterPattern filterPattern;
 ILogSubscriptionDestination logSubscriptionDestination;
 SubscriptionFilterOptions subscriptionFilterOptions = SubscriptionFilterOptions.builder()
         .destination(logSubscriptionDestination)
         .filterPattern(filterPattern)
         // the properties below are optional
         .distribution(Distribution.BY_LOG_STREAM)
         .filterName("filterName")
         .build();
 
  • Method Details

    • getDestination

      @Stability(Stable) @NotNull ILogSubscriptionDestination getDestination()
      The destination to send the filtered events to.

      For example, a Kinesis stream or a Lambda function.

    • getFilterPattern

      @Stability(Stable) @NotNull IFilterPattern getFilterPattern()
      Log events matching this pattern will be sent to the destination.
    • getDistribution

      @Stability(Stable) @Nullable default Distribution getDistribution()
      The method used to distribute log data to the destination.

      This property can only be used with KinesisDestination.

      Default: Distribution.BY_LOG_STREAM

    • getFilterName

      @Stability(Stable) @Nullable default String getFilterName()
      The name of the subscription filter.

      Default: Automatically generated

    • builder

      @Stability(Stable) static SubscriptionFilterOptions.Builder builder()
      Returns:
      a SubscriptionFilterOptions.Builder of SubscriptionFilterOptions