Class: AWSCDK::SES::CfnContactListProps

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

Overview

Properties for defining a CfnContactList.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contact_list_name: nil, description: nil, tags: nil, topics: nil) ⇒ CfnContactListProps

Returns a new instance of CfnContactListProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'ses/cfn_contact_list_props.rb', line 13

def initialize(contact_list_name: nil, description: nil, tags: nil, topics: nil)
  @contact_list_name = contact_list_name
  Jsii::Type.check_type(@contact_list_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactListName") unless @contact_list_name.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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?
  @topics = topics
  Jsii::Type.check_type(@topics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkNmbkNvbnRhY3RMaXN0LlRvcGljUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "topics") unless @topics.nil?
end

Instance Attribute Details

#contact_list_nameString? (readonly)

The name of the contact list.



28
29
30
# File 'ses/cfn_contact_list_props.rb', line 28

def contact_list_name
  @contact_list_name
end

#descriptionString? (readonly)

A description of what the contact list is about.



33
34
35
# File 'ses/cfn_contact_list_props.rb', line 33

def description
  @description
end

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

The tags associated with a contact list.



38
39
40
# File 'ses/cfn_contact_list_props.rb', line 38

def tags
  @tags
end

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

An interest group, theme, or label within a list.

A contact list can have multiple topics.



45
46
47
# File 'ses/cfn_contact_list_props.rb', line 45

def topics
  @topics
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'ses/cfn_contact_list_props.rb', line 47

def self.jsii_properties
  {
    :contact_list_name => "contactListName",
    :description => "description",
    :tags => "tags",
    :topics => "topics",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'ses/cfn_contact_list_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "contactListName" => @contact_list_name,
    "description" => @description,
    "tags" => @tags,
    "topics" => @topics,
  })
  result.compact
end