Class: AWSCDK::Connect::CfnRule::SendNotificationActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_rule.rb

Overview

Information about the send notification action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, content_type:, delivery_method:, recipient:, subject: nil) ⇒ SendNotificationActionProperty

Returns a new instance of SendNotificationActionProperty.

Parameters:



1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'connect/cfn_rule.rb', line 1013

def initialize(content:, content_type:, delivery_method:, recipient:, subject: nil)
  @content = content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content")
  @content_type = content_type
  Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contentType")
  @delivery_method = delivery_method
  Jsii::Type.check_type(@delivery_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deliveryMethod")
  @recipient = recipient.is_a?(Hash) ? ::AWSCDK::Connect::CfnRule::NotificationRecipientTypeProperty.new(**recipient.transform_keys(&:to_sym)) : recipient
  Jsii::Type.check_type(@recipient, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblJ1bGUuTm90aWZpY2F0aW9uUmVjaXBpZW50VHlwZVByb3BlcnR5In1dfX0=")), "recipient")
  @subject = subject
  Jsii::Type.check_type(@subject, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subject") unless @subject.nil?
end

Instance Attribute Details

#contentString (readonly)

Notification content.

Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .



1032
1033
1034
# File 'connect/cfn_rule.rb', line 1032

def content
  @content
end

#content_typeString (readonly)

Content type format.

Allowed value : PLAIN_TEXT



1039
1040
1041
# File 'connect/cfn_rule.rb', line 1039

def content_type
  @content_type
end

#delivery_methodString (readonly)

Notification delivery method.

Allowed value : EMAIL



1046
1047
1048
# File 'connect/cfn_rule.rb', line 1046

def delivery_method
  @delivery_method
end

#subjectString? (readonly)

The subject of the email if the delivery method is EMAIL .

Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .



1058
1059
1060
# File 'connect/cfn_rule.rb', line 1058

def subject
  @subject
end

Class Method Details

.jsii_propertiesObject



1060
1061
1062
1063
1064
1065
1066
1067
1068
# File 'connect/cfn_rule.rb', line 1060

def self.jsii_properties
  {
    :content => "content",
    :content_type => "contentType",
    :delivery_method => "deliveryMethod",
    :recipient => "recipient",
    :subject => "subject",
  }
end

Instance Method Details

#to_jsiiObject



1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'connect/cfn_rule.rb', line 1070

def to_jsii
  result = {}
  result.merge!({
    "content" => @content,
    "contentType" => @content_type,
    "deliveryMethod" => @delivery_method,
    "recipient" => @recipient,
    "subject" => @subject,
  })
  result.compact
end