Class: AWSCDK::Route53::CIDRRoutingConfigProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/cidr_routing_config_props.rb

Overview

Properties for configuring CIDR routing in Route 53 resource record set objects.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collection_id:, location_name: nil) ⇒ CIDRRoutingConfigProps

Returns a new instance of CIDRRoutingConfigProps.

Parameters:

  • collection_id (String)

    The CIDR collection ID.

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

    The CIDR collection location name.



9
10
11
12
13
14
# File 'route53/cidr_routing_config_props.rb', line 9

def initialize(collection_id:, location_name: nil)
  @collection_id = collection_id
  Jsii::Type.check_type(@collection_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "collectionId")
  @location_name = location_name
  Jsii::Type.check_type(@location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "locationName") unless @location_name.nil?
end

Instance Attribute Details

#collection_idString (readonly)

The CIDR collection ID.

Returns:

  • (String)


19
20
21
# File 'route53/cidr_routing_config_props.rb', line 19

def collection_id
  @collection_id
end

#location_nameString? (readonly)

Note:

Default: *

The CIDR collection location name.

Returns:

  • (String, nil)


24
25
26
# File 'route53/cidr_routing_config_props.rb', line 24

def location_name
  @location_name
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'route53/cidr_routing_config_props.rb', line 26

def self.jsii_properties
  {
    :collection_id => "collectionId",
    :location_name => "locationName",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'route53/cidr_routing_config_props.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "collectionId" => @collection_id,
    "locationName" => @location_name,
  })
  result.compact
end