Class CfnReplay

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IReplayRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:03.851Z") @Stability(Stable) public class CfnReplay extends CfnResource implements IInspectable, IReplayRef
An EventBridge Replay replays archived events from an archive to an event bus.

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.*;
 CfnReplay cfnReplay = CfnReplay.Builder.create(this, "MyCfnReplay")
         .destination(DestinationProperty.builder()
                 .arn("arn")
                 .build())
         .eventEndTime("eventEndTime")
         .eventSourceArn("eventSourceArn")
         .eventStartTime("eventStartTime")
         .replayName("replayName")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnReplay

      protected CfnReplay(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnReplay

      protected CfnReplay(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnReplay

      @Stability(Stable) public CfnReplay(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnReplayProps props)
      Create a new AWS::Events::Replay.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForReplay

      @Stability(Stable) @NotNull public static String arnForReplay(@NotNull IReplayRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnReplay

      @Stability(Stable) @NotNull public static Boolean isCfnReplay(@NotNull Object x)
      Checks whether the given object is a CfnReplay.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrReplayArn

      @Stability(Stable) @NotNull public String getAttrReplayArn()
      The ARN of the replay.
    • getAttrReplayStartTime

      @Stability(Stable) @NotNull public String getAttrReplayStartTime()
      A time stamp for the time that the replay started.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The current state of the replay.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getReplayRef

      @Stability(Stable) @NotNull public ReplayReference getReplayRef()
      A reference to a Replay resource.
      Specified by:
      getReplayRef in interface IReplayRef
    • getDestination

      @Stability(Stable) @NotNull public Object getDestination()
      A ReplayDestination object that includes details about the destination for the replay.

      Returns union: either IResolvable or CfnReplay.DestinationProperty

    • setDestination

      @Stability(Stable) public void setDestination(@NotNull IResolvable value)
      A ReplayDestination object that includes details about the destination for the replay.
    • setDestination

      @Stability(Stable) public void setDestination(@NotNull CfnReplay.DestinationProperty value)
      A ReplayDestination object that includes details about the destination for the replay.
    • getEventEndTime

      @Stability(Stable) @NotNull public String getEventEndTime()
      A time stamp for the time to stop replaying events.
    • setEventEndTime

      @Stability(Stable) public void setEventEndTime(@NotNull String value)
      A time stamp for the time to stop replaying events.
    • getEventSourceArn

      @Stability(Stable) @NotNull public String getEventSourceArn()
      The ARN of the archive to replay events from.
    • setEventSourceArn

      @Stability(Stable) public void setEventSourceArn(@NotNull String value)
      The ARN of the archive to replay events from.
    • getEventStartTime

      @Stability(Stable) @NotNull public String getEventStartTime()
      A time stamp for the time to start replaying events.
    • setEventStartTime

      @Stability(Stable) public void setEventStartTime(@NotNull String value)
      A time stamp for the time to start replaying events.
    • getReplayName

      @Stability(Stable) @NotNull public String getReplayName()
      The name of the replay.
    • setReplayName

      @Stability(Stable) public void setReplayName(@NotNull String value)
      The name of the replay.