Class: AWSCDK::SES::CfnMailManagerAddonSubscriptionProps

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

Overview

Properties for defining a CfnMailManagerAddonSubscription.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addon_name:, tags: nil) ⇒ CfnMailManagerAddonSubscriptionProps

Returns a new instance of CfnMailManagerAddonSubscriptionProps.

Parameters:

  • addon_name (String)

    The name of the Add On to subscribe to.

  • 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_subscription_props.rb', line 11

def initialize(addon_name:, tags: nil)
  @addon_name = addon_name
  Jsii::Type.check_type(@addon_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addonName")
  @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_nameString (readonly)

The name of the Add On to subscribe to.

You can only have one subscription for each Add On name.

Valid Values: TRENDMICRO_VSAPI | SPAMHAUS_DBL | ABUSIX_MAIL_INTELLIGENCE | VADE_ADVANCED_EMAIL_SECURITY



26
27
28
# File 'ses/cfn_mail_manager_addon_subscription_props.rb', line 26

def addon_name
  @addon_name
end

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

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

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



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

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
# File 'ses/cfn_mail_manager_addon_subscription_props.rb', line 35

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

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
# File 'ses/cfn_mail_manager_addon_subscription_props.rb', line 42

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