Interface CfnArchiveProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnArchiveProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.939Z") @Stability(Stable) public interface CfnArchiveProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnArchive.

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.events.*;
 Object eventPattern;
 CfnArchiveProps cfnArchiveProps = CfnArchiveProps.builder()
         .sourceArn("sourceArn")
         // the properties below are optional
         .archiveName("archiveName")
         .description("description")
         .eventPattern(eventPattern)
         .retentionDays(123)
         .build();
 
  • Method Details

    • getSourceArn

      @Stability(Stable) @NotNull String getSourceArn()
      The ARN of the event bus that sends events to the archive.
    • getArchiveName

      @Stability(Stable) @Nullable default String getArchiveName()
      The name for the archive to create.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description for the archive.
    • getEventPattern

      @Stability(Stable) @Nullable default Object getEventPattern()
      An event pattern to use to filter events sent to the archive.
    • getRetentionDays

      @Stability(Stable) @Nullable default Number getRetentionDays()
      The number of days to retain events for.

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

    • builder

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