Class: AWSCDK::Interfaces::AWSEC2::RouteReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::RouteReference
- Defined in:
- interfaces/awsec2/route_reference.rb
Overview
A reference to a Route resource.
Instance Attribute Summary collapse
-
#cidr_block ⇒ String
readonly
The CidrBlock of the Route resource.
-
#route_table_id ⇒ String
readonly
The RouteTableId of the Route resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidr_block:, route_table_id:) ⇒ RouteReference
constructor
A new instance of RouteReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidr_block:, route_table_id:) ⇒ RouteReference
Returns a new instance of RouteReference.
9 10 11 12 13 14 |
# File 'interfaces/awsec2/route_reference.rb', line 9 def initialize(cidr_block:, route_table_id:) @cidr_block = cidr_block Jsii::Type.check_type(@cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidrBlock") @route_table_id = route_table_id Jsii::Type.check_type(@route_table_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routeTableId") end |
Instance Attribute Details
#cidr_block ⇒ String (readonly)
The CidrBlock of the Route resource.
19 20 21 |
# File 'interfaces/awsec2/route_reference.rb', line 19 def cidr_block @cidr_block end |
#route_table_id ⇒ String (readonly)
The RouteTableId of the Route resource.
23 24 25 |
# File 'interfaces/awsec2/route_reference.rb', line 23 def route_table_id @route_table_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsec2/route_reference.rb', line 25 def self.jsii_properties { :cidr_block => "cidrBlock", :route_table_id => "routeTableId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsec2/route_reference.rb', line 32 def to_jsii result = {} result.merge!({ "cidrBlock" => @cidr_block, "routeTableId" => @route_table_id, }) result.compact end |