Class: AWSCDK::PinpointEmail::CfnDedicatedIPPoolProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint_email/cfn_dedicated_ip_pool_props.rb

Overview

Properties for defining a CfnDedicatedIpPool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool_name: nil, tags: nil) ⇒ CfnDedicatedIPPoolProps

Returns a new instance of CfnDedicatedIPPoolProps.

Parameters:

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

    The name of the dedicated IP pool.

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

    An object that defines the tags (keys and values) that you want to associate with the dedicated IP pool.



11
12
13
14
15
16
# File 'pinpoint_email/cfn_dedicated_ip_pool_props.rb', line 11

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

Instance Attribute Details

#pool_nameString? (readonly)

The name of the dedicated IP pool.



22
23
24
# File 'pinpoint_email/cfn_dedicated_ip_pool_props.rb', line 22

def pool_name
  @pool_name
end

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

An object that defines the tags (keys and values) that you want to associate with the dedicated IP pool.



27
28
29
# File 'pinpoint_email/cfn_dedicated_ip_pool_props.rb', line 27

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'pinpoint_email/cfn_dedicated_ip_pool_props.rb', line 29

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

Instance Method Details

#to_jsiiObject



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

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