Class: AWSCDK::EC2::CfnRouteServerEndpointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnRouteServerEndpointProps
- Defined in:
- ec2/cfn_route_server_endpoint_props.rb
Overview
Properties for defining a CfnRouteServerEndpoint.
Instance Attribute Summary collapse
-
#route_server_id ⇒ String
readonly
The ID of the route server associated with this endpoint.
-
#subnet_id ⇒ String
readonly
The ID of the subnet to place the route server endpoint into.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Any tags assigned to the route server endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_server_id:, subnet_id:, tags: nil) ⇒ CfnRouteServerEndpointProps
constructor
A new instance of CfnRouteServerEndpointProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(route_server_id:, subnet_id:, tags: nil) ⇒ CfnRouteServerEndpointProps
Returns a new instance of CfnRouteServerEndpointProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 12 def initialize(route_server_id:, subnet_id:, tags: nil) @route_server_id = route_server_id Jsii::Type.check_type(@route_server_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routeServerId") @subnet_id = subnet_id Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#route_server_id ⇒ String (readonly)
The ID of the route server associated with this endpoint.
25 26 27 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 25 def route_server_id @route_server_id end |
#subnet_id ⇒ String (readonly)
The ID of the subnet to place the route server endpoint into.
30 31 32 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 30 def subnet_id @subnet_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Any tags assigned to the route server endpoint.
35 36 37 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 37 def self.jsii_properties { :route_server_id => "routeServerId", :subnet_id => "subnetId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ec2/cfn_route_server_endpoint_props.rb', line 45 def to_jsii result = {} result.merge!({ "routeServerId" => @route_server_id, "subnetId" => @subnet_id, "tags" => @tags, }) result.compact end |