Class: AWSCDK::Pinpoint::CfnCampaign::TemplateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_campaign.rb

Overview

Specifies the name and version of the message template to use for the message.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, version: nil) ⇒ TemplateProperty

Returns a new instance of TemplateProperty.

Parameters:

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

    The name of the message template to use for the message.

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

    The unique identifier for the version of the message template to use for the message.



2316
2317
2318
2319
2320
2321
# File 'pinpoint/cfn_campaign.rb', line 2316

def initialize(name: nil, version: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the message template to use for the message.

If specified, this value must match the name of an existing message template.



2329
2330
2331
# File 'pinpoint/cfn_campaign.rb', line 2329

def name
  @name
end

#versionString? (readonly)

The unique identifier for the version of the message template to use for the message.

If specified, this value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.

If you don't specify a value for this property, Amazon Pinpoint uses the active version of the template. The active version is typically the version of a template that's been most recently reviewed and approved for use, depending on your workflow. It isn't necessarily the latest version of a template.



2338
2339
2340
# File 'pinpoint/cfn_campaign.rb', line 2338

def version
  @version
end

Class Method Details

.jsii_propertiesObject



2340
2341
2342
2343
2344
2345
# File 'pinpoint/cfn_campaign.rb', line 2340

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

Instance Method Details

#to_jsiiObject



2347
2348
2349
2350
2351
2352
2353
2354
# File 'pinpoint/cfn_campaign.rb', line 2347

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "version" => @version,
  })
  result.compact
end