Class: AWSCDK::SES::CfnMultiRegionEndpointProps

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

Overview

Properties for defining a CfnMultiRegionEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details:, endpoint_name:, tags: nil) ⇒ CfnMultiRegionEndpointProps

Returns a new instance of CfnMultiRegionEndpointProps.

Parameters:

  • details (AWSCDK::IResolvable, AWSCDK::SES::CfnMultiRegionEndpoint::DetailsProperty)

    Contains details of a multi-region endpoint (global-endpoint) being created.

  • endpoint_name (String)

    The name of the multi-region endpoint (global-endpoint).

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

    An array of objects that define the tags (keys and values) to associate with the multi-region endpoint (global-endpoint).



12
13
14
15
16
17
18
19
# File 'ses/cfn_multi_region_endpoint_props.rb', line 12

def initialize(details:, endpoint_name:, tags: nil)
  @details = details.is_a?(Hash) ? ::AWSCDK::SES::CfnMultiRegionEndpoint::DetailsProperty.new(**details.transform_keys(&:to_sym)) : details
  Jsii::Type.check_type(@details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTXVsdGlSZWdpb25FbmRwb2ludC5EZXRhaWxzUHJvcGVydHkifV19fQ==")), "details")
  @endpoint_name = endpoint_name
  Jsii::Type.check_type(@endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointName")
  @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

#detailsAWSCDK::IResolvable, AWSCDK::SES::CfnMultiRegionEndpoint::DetailsProperty (readonly)

Contains details of a multi-region endpoint (global-endpoint) being created.



25
26
27
# File 'ses/cfn_multi_region_endpoint_props.rb', line 25

def details
  @details
end

#endpoint_nameString (readonly)

The name of the multi-region endpoint (global-endpoint).



30
31
32
# File 'ses/cfn_multi_region_endpoint_props.rb', line 30

def endpoint_name
  @endpoint_name
end

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

An array of objects that define the tags (keys and values) to associate with the multi-region endpoint (global-endpoint).



35
36
37
# File 'ses/cfn_multi_region_endpoint_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :details => "details",
    :endpoint_name => "endpointName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'ses/cfn_multi_region_endpoint_props.rb', line 45

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