Class CfnNotification

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-19T12:55:01.809Z") @Stability(Stable) public class CfnNotification extends CfnResource implements IInspectable, INotificationRef, ITaggableV2
Resource Type definition for AWS::Connect::Notification.

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.connect.*;
 CfnNotification cfnNotification = CfnNotification.Builder.create(this, "MyCfnNotification")
         .content(NotificationContentProperty.builder()
                 .deDe("deDe")
                 .enUs("enUs")
                 .esEs("esEs")
                 .frFr("frFr")
                 .idId("idId")
                 .itIt("itIt")
                 .jaJp("jaJp")
                 .koKr("koKr")
                 .ptBr("ptBr")
                 .zhCn("zhCn")
                 .zhTw("zhTw")
                 .build())
         .instanceArn("instanceArn")
         // the properties below are optional
         .expiresAt("expiresAt")
         .priority("priority")
         .recipients(List.of("recipients"))
         .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

    • CfnNotification

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

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

      @Stability(Stable) public CfnNotification(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnNotificationProps props)
      Create a new AWS::Connect::Notification.

      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

    • arnForNotification

      @Stability(Stable) @NotNull public static String arnForNotification(@NotNull INotificationRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnNotification

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

      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 Amazon Resource Name (ARN) for the notification.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The time a notification was created.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The identifier of the notification.
    • 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
    • getNotificationRef

      @Stability(Stable) @NotNull public NotificationReference getNotificationRef()
      A reference to a Notification resource.
      Specified by:
      getNotificationRef in interface INotificationRef
    • getContent

      @Stability(Stable) @NotNull public Object getContent()
      The content of a notification.

      Returns union: either IResolvable or CfnNotification.NotificationContentProperty

    • setContent

      @Stability(Stable) public void setContent(@NotNull IResolvable value)
      The content of a notification.
    • setContent

      @Stability(Stable) public void setContent(@NotNull CfnNotification.NotificationContentProperty value)
      The content of a notification.
    • getInstanceArn

      @Stability(Stable) @NotNull public String getInstanceArn()
      The identifier of the Amazon Connect instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The identifier of the Amazon Connect instance.
    • getExpiresAt

      @Stability(Stable) @Nullable public String getExpiresAt()
      The time a notification will expire.
    • setExpiresAt

      @Stability(Stable) public void setExpiresAt(@Nullable String value)
      The time a notification will expire.
    • getPriority

      @Stability(Stable) @Nullable public String getPriority()
      The priority of notification.
    • setPriority

      @Stability(Stable) public void setPriority(@Nullable String value)
      The priority of notification.
    • getRecipients

      @Stability(Stable) @Nullable public List<String> getRecipients()
      The recipients of the notification.
    • setRecipients

      @Stability(Stable) public void setRecipients(@Nullable List<String> value)
      The recipients of the notification.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      One or more tags.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      One or more tags.