Class: AWSCDK::EC2::CfnRouteServerAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_route_server_association_props.rb

Overview

Properties for defining a CfnRouteServerAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_server_id:, vpc_id:) ⇒ CfnRouteServerAssociationProps

Returns a new instance of CfnRouteServerAssociationProps.

Parameters:

  • route_server_id (String)

    The ID of the associated route server.

  • vpc_id (String)

    The ID of the associated VPC.



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_idString (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_idString (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_propertiesObject



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_jsiiObject



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