Class: AWSCDK::Pinpoint::CfnCampaign::CampaignCustomMessageProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data: nil) ⇒ CampaignCustomMessageProperty

Returns a new instance of CampaignCustomMessageProperty.

Parameters:

  • data (String, nil) (defaults to: nil)

    The raw, JSON-formatted string to use as the payload for the message.



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

#dataString? (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_propertiesObject



803
804
805
806
807
# File 'pinpoint/cfn_campaign.rb', line 803

def self.jsii_properties
  {
    :data => "data",
  }
end

Instance Method Details

#to_jsiiObject



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