Class CfnEventAction

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

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:07.250Z") @Stability(Stable) public class CfnEventAction extends CfnResource implements IInspectable, IEventActionRef, ITaggableV2
An event action is an AWS Data Exchange resource that automatically exports data set revisions to Amazon S3 when a revision is published.

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.dataexchange.*;
 CfnEventAction cfnEventAction = CfnEventAction.Builder.create(this, "MyCfnEventAction")
         .action(ActionProperty.builder()
                 .exportRevisionToS3(AutoExportRevisionToS3RequestDetailsProperty.builder()
                         .revisionDestination(AutoExportRevisionDestinationEntryProperty.builder()
                                 .bucket("bucket")
                                 // the properties below are optional
                                 .keyPattern("keyPattern")
                                 .build())
                         // the properties below are optional
                         .encryption(ExportServerSideEncryptionProperty.builder()
                                 .type("type")
                                 // the properties below are optional
                                 .kmsKeyArn("kmsKeyArn")
                                 .build())
                         .build())
                 .build())
         .event(EventProperty.builder()
                 .revisionPublished(RevisionPublishedProperty.builder()
                         .dataSetId("dataSetId")
                         .build())
                 .build())
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnEventAction

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

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

      @Stability(Stable) public CfnEventAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEventActionProps props)
      Create a new AWS::DataExchange::EventAction.

      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

    • arnForEventAction

      @Stability(Stable) @NotNull public static String arnForEventAction(@NotNull IEventActionRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnEventAction

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

      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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The ARN for the event action.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The date and time that the event action was created, in ISO 8601 format.
    • getAttrEventActionId

      @Stability(Stable) @NotNull public String getAttrEventActionId()
      The unique identifier for the event action.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The date and time that the event action was last updated, in ISO 8601 format.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • 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
    • getEventActionRef

      @Stability(Stable) @NotNull public EventActionReference getEventActionRef()
      A reference to a EventAction resource.
      Specified by:
      getEventActionRef in interface IEventActionRef
    • getAction

      @Stability(Stable) @NotNull public Object getAction()
      What occurs after a certain event.

      Returns union: either IResolvable or CfnEventAction.ActionProperty

    • setAction

      @Stability(Stable) public void setAction(@NotNull IResolvable value)
      What occurs after a certain event.
    • setAction

      @Stability(Stable) public void setAction(@NotNull CfnEventAction.ActionProperty value)
      What occurs after a certain event.
    • getEvent

      @Stability(Stable) @NotNull public Object getEvent()
      What occurs to start an action.

      Returns union: either IResolvable or CfnEventAction.EventProperty

    • setEvent

      @Stability(Stable) public void setEvent(@NotNull IResolvable value)
      What occurs to start an action.
    • setEvent

      @Stability(Stable) public void setEvent(@NotNull CfnEventAction.EventProperty value)
      What occurs to start an action.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags for the event action.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags for the event action.