Class CfnEventBridgeRuleTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.medialive.CfnEventBridgeRuleTemplate
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:04.598Z") @Stability(Stable) public class CfnEventBridgeRuleTemplate extends CfnResource implements IInspectable, ITaggableV2
Definition of AWS::MediaLive::EventBridgeRuleTemplate Resource Type.

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.medialive.*;
 CfnEventBridgeRuleTemplate cfnEventBridgeRuleTemplate = CfnEventBridgeRuleTemplate.Builder.create(this, "MyCfnEventBridgeRuleTemplate")
         .eventType("eventType")
         .groupIdentifier("groupIdentifier")
         .name("name")
         // the properties below are optional
         .description("description")
         .eventTargets(List.of(EventBridgeRuleTemplateTargetProperty.builder()
                 .arn("arn")
                 .build()))
         .tags(Map.of(
                 "tagsKey", "tags"))
         .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

    • CfnEventBridgeRuleTemplate

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

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

      @Stability(Stable) public CfnEventBridgeRuleTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEventBridgeRuleTemplateProps props)
      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

    • 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()
      Target ARNs must be either an SNS topic or CloudWatch log group.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The date and time of resource creation.
    • getAttrGroupId

      @Stability(Stable) @NotNull public String getAttrGroupId()
      An eventbridge rule template group's id.

      Amazon Web Services provided template groups have ids that start with aws-.

    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      An eventbridge rule template's id.

      Amazon Web Services provided templates have ids that start with aws-

    • getAttrIdentifier

      @Stability(Stable) @NotNull public String getAttrIdentifier()
      Placeholder documentation for __string.
    • getAttrModifiedAt

      @Stability(Stable) @NotNull public String getAttrModifiedAt()
      The date and time of latest resource modification.
    • 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
    • getEventType

      @Stability(Stable) @NotNull public String getEventType()
      The type of event to match with the rule.
    • setEventType

      @Stability(Stable) public void setEventType(@NotNull String value)
      The type of event to match with the rule.
    • getGroupIdentifier

      @Stability(Stable) @NotNull public String getGroupIdentifier()
      An eventbridge rule template group's identifier.
    • setGroupIdentifier

      @Stability(Stable) public void setGroupIdentifier(@NotNull String value)
      An eventbridge rule template group's identifier.
    • getName

      @Stability(Stable) @NotNull public String getName()
      A resource's name.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      A resource's name.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A resource's optional description.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A resource's optional description.
    • getEventTargets

      @Stability(Stable) @Nullable public Object getEventTargets()
      The destinations that will receive the event notifications.
    • setEventTargets

      @Stability(Stable) public void setEventTargets(@Nullable IResolvable value)
      The destinations that will receive the event notifications.
    • setEventTargets

      @Stability(Stable) public void setEventTargets(@Nullable List<Object> value)
      The destinations that will receive the event notifications.
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      Represents the tags associated with a resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      Represents the tags associated with a resource.