Class: AWSCDK::EC2::CfnRouteServerAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnRouteServerAssociationProps
- Defined in:
- ec2/cfn_route_server_association_props.rb
Overview
Properties for defining a CfnRouteServerAssociation.
Instance Attribute Summary collapse
-
#route_server_id ⇒ String
readonly
The ID of the associated route server.
-
#vpc_id ⇒ String
readonly
The ID of the associated VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_server_id:, vpc_id:) ⇒ CfnRouteServerAssociationProps
constructor
A new instance of CfnRouteServerAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route_server_id:, vpc_id:) ⇒ CfnRouteServerAssociationProps
Returns a new instance of CfnRouteServerAssociationProps.
11 12 13 14 15 16 |
# File 'ec2/cfn_route_server_association_props.rb', line 11 def initialize(route_server_id:, vpc_id:) @route_server_id = route_server_id Jsii::Type.check_type(@route_server_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routeServerId") @vpc_id = vpc_id Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId") end |
Instance Attribute Details
#route_server_id ⇒ String (readonly)
The ID of the associated route server.
22 23 24 |
# File 'ec2/cfn_route_server_association_props.rb', line 22 def route_server_id @route_server_id end |
#vpc_id ⇒ String (readonly)
The ID of the associated VPC.
27 28 29 |
# File 'ec2/cfn_route_server_association_props.rb', line 27 def vpc_id @vpc_id end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'ec2/cfn_route_server_association_props.rb', line 29 def self.jsii_properties { :route_server_id => "routeServerId", :vpc_id => "vpcId", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'ec2/cfn_route_server_association_props.rb', line 36 def to_jsii result = {} result.merge!({ "routeServerId" => @route_server_id, "vpcId" => @vpc_id, }) result.compact end |