Class: AWSCDK::Route53::CfnRecordSet::CIDRRoutingConfigProperty

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

Overview

The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.

A LocationName with an asterisk “*” can be used to create a default CIDR record. CollectionId is still required for default record.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collection_id:, location_name:) ⇒ CIDRRoutingConfigProperty

Returns a new instance of CIDRRoutingConfigProperty.

Parameters:

  • collection_id (String)

    The CIDR collection ID.

  • location_name (String)

    The CIDR collection location name.



874
875
876
877
878
879
# File 'route53/cfn_record_set.rb', line 874

def initialize(collection_id:, location_name:)
  @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")
end

Instance Attribute Details

#collection_idString (readonly)

The CIDR collection ID.



885
886
887
# File 'route53/cfn_record_set.rb', line 885

def collection_id
  @collection_id
end

#location_nameString (readonly)

The CIDR collection location name.



890
891
892
# File 'route53/cfn_record_set.rb', line 890

def location_name
  @location_name
end

Class Method Details

.jsii_propertiesObject



892
893
894
895
896
897
# File 'route53/cfn_record_set.rb', line 892

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

Instance Method Details

#to_jsiiObject



899
900
901
902
903
904
905
906
# File 'route53/cfn_record_set.rb', line 899

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