Class: AWSCDK::SES::CfnTemplateProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_template_props.rb

Overview

Properties for defining a CfnTemplate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags: nil, template: nil) ⇒ CfnTemplateProps

Returns a new instance of CfnTemplateProps.

Parameters:



11
12
13
14
15
16
# File 'ses/cfn_template_props.rb', line 11

def initialize(tags: nil, template: nil)
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
  @template = template.is_a?(Hash) ? ::AWSCDK::SES::CfnTemplate::TemplateProperty.new(**template.transform_keys(&:to_sym)) : template
  Jsii::Type.check_type(@template, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuVGVtcGxhdGUuVGVtcGxhdGVQcm9wZXJ0eSJ9XX19")), "template") unless @template.nil?
end

Instance Attribute Details

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags (keys and values) associated with the email template.



22
23
24
# File 'ses/cfn_template_props.rb', line 22

def tags
  @tags
end

#templateAWSCDK::IResolvable, ... (readonly)

The content of the email, composed of a subject line and either an HTML part or a text-only part.



27
28
29
# File 'ses/cfn_template_props.rb', line 27

def template
  @template
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ses/cfn_template_props.rb', line 29

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

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ses/cfn_template_props.rb', line 36

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