Class: AWSCDK::Pinpoint::CfnCampaign::CampaignCustomMessageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnCampaign::CampaignCustomMessageProperty
- Defined in:
- pinpoint/cfn_campaign.rb
Overview
Specifies the contents of a message that's sent through a custom channel to recipients of a campaign.
Instance Attribute Summary collapse
-
#data ⇒ String?
readonly
The raw, JSON-formatted string to use as the payload for the message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data: nil) ⇒ CampaignCustomMessageProperty
constructor
A new instance of CampaignCustomMessageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data: nil) ⇒ CampaignCustomMessageProperty
Returns a new instance of CampaignCustomMessageProperty.
790 791 792 793 |
# File 'pinpoint/cfn_campaign.rb', line 790 def initialize(data: nil) @data = data Jsii::Type.check_type(@data, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "data") unless @data.nil? end |
Instance Attribute Details
#data ⇒ String? (readonly)
The raw, JSON-formatted string to use as the payload for the message.
The maximum size is 5 KB.
801 802 803 |
# File 'pinpoint/cfn_campaign.rb', line 801 def data @data end |
Class Method Details
.jsii_properties ⇒ Object
803 804 805 806 807 |
# File 'pinpoint/cfn_campaign.rb', line 803 def self.jsii_properties { :data => "data", } end |
Instance Method Details
#to_jsii ⇒ Object
809 810 811 812 813 814 815 |
# File 'pinpoint/cfn_campaign.rb', line 809 def to_jsii result = {} result.merge!({ "data" => @data, }) result.compact end |