Class CfnArchive.Builder

java.lang.Object
software.amazon.awscdk.services.events.CfnArchive.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnArchive>
Enclosing class:
CfnArchive

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

    • create

      @Stability(Stable) public static CfnArchive.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnArchive.Builder.
    • sourceArn

      @Stability(Stable) public CfnArchive.Builder sourceArn(String sourceArn)
      The ARN of the event bus that sends events to the archive.

      Parameters:
      sourceArn - The ARN of the event bus that sends events to the archive. This parameter is required.
      Returns:
      this
    • archiveName

      @Stability(Stable) public CfnArchive.Builder archiveName(String archiveName)
      The name for the archive to create.

      Parameters:
      archiveName - The name for the archive to create. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnArchive.Builder description(String description)
      A description for the archive.

      Parameters:
      description - A description for the archive. This parameter is required.
      Returns:
      this
    • eventPattern

      @Stability(Stable) public CfnArchive.Builder eventPattern(Object eventPattern)
      An event pattern to use to filter events sent to the archive.

      Parameters:
      eventPattern - An event pattern to use to filter events sent to the archive. This parameter is required.
      Returns:
      this
    • retentionDays

      @Stability(Stable) public CfnArchive.Builder retentionDays(Number retentionDays)
      The number of days to retain events for.

      Default value is 0. If set to 0, events are retained indefinitely

      Parameters:
      retentionDays - The number of days to retain events for. This parameter is required.
      Returns:
      this
    • build

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