Class S3EventSourceV2.Builder

java.lang.Object
software.amazon.awscdk.services.lambda.eventsources.S3EventSourceV2.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<S3EventSourceV2>
Enclosing class:
S3EventSourceV2

@Stability(Stable) public static final class S3EventSourceV2.Builder extends Object implements software.amazon.jsii.Builder<S3EventSourceV2>
A fluent builder for S3EventSourceV2.
  • Method Details

    • create

      @Stability(Stable) public static S3EventSourceV2.Builder create(IBucket bucket)
      Parameters:
      bucket - This parameter is required.
      Returns:
      a new instance of S3EventSourceV2.Builder.
    • events

      @Stability(Stable) public S3EventSourceV2.Builder events(List<? extends EventType> events)
      The s3 event types that will trigger the notification.

      Parameters:
      events - The s3 event types that will trigger the notification. This parameter is required.
      Returns:
      this
    • filters

      @Stability(Stable) public S3EventSourceV2.Builder filters(List<? extends NotificationKeyFilter> filters)
      S3 object key filter rules to determine which objects trigger this event.

      Each filter must include a prefix and/or suffix that will be matched against the s3 object key. Refer to the S3 Developer Guide for details about allowed filter rules.

      Parameters:
      filters - S3 object key filter rules to determine which objects trigger this event. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public S3EventSourceV2 build()
      Specified by:
      build in interface software.amazon.jsii.Builder<S3EventSourceV2>
      Returns:
      a newly built instance of S3EventSourceV2.