Class: AWSCDK::SES::CfnMailManagerAddonInstanceProps

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

Overview

Properties for defining a CfnMailManagerAddonInstance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addon_subscription_id:, tags: nil) ⇒ CfnMailManagerAddonInstanceProps

Returns a new instance of CfnMailManagerAddonInstanceProps.

Parameters:

  • addon_subscription_id (String)

    The subscription ID for the instance.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags used to organize, track, or control access for the resource.



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

def initialize(addon_subscription_id:, tags: nil)
  @addon_subscription_id = addon_subscription_id
  Jsii::Type.check_type(@addon_subscription_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addonSubscriptionId")
  @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?
end

Instance Attribute Details

#addon_subscription_idString (readonly)

The subscription ID for the instance.



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

def addon_subscription_id
  @addon_subscription_id
end

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

The tags used to organize, track, or control access for the resource.

For example, { "tags": "key2":"value2" }.



29
30
31
# File 'ses/cfn_mail_manager_addon_instance_props.rb', line 29

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'ses/cfn_mail_manager_addon_instance_props.rb', line 31

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

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'ses/cfn_mail_manager_addon_instance_props.rb', line 38

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