Class: AWSCDK::Directconnect::CfnDirectConnectGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Directconnect::CfnDirectConnectGatewayProps
- Defined in:
- directconnect/cfn_direct_connect_gateway_props.rb
Overview
Properties for defining a CfnDirectConnectGateway.
Instance Attribute Summary collapse
-
#amazon_side_asn ⇒ String?
readonly
The autonomous system number (ASN) for the Amazon side of the connection.
-
#direct_connect_gateway_name ⇒ String
readonly
The name of the Direct Connect gateway.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the Direct Connect gateway.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(direct_connect_gateway_name:, amazon_side_asn: nil, tags: nil) ⇒ CfnDirectConnectGatewayProps
constructor
A new instance of CfnDirectConnectGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(direct_connect_gateway_name:, amazon_side_asn: nil, tags: nil) ⇒ CfnDirectConnectGatewayProps
Returns a new instance of CfnDirectConnectGatewayProps.
12 13 14 15 16 17 18 19 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 12 def initialize(direct_connect_gateway_name:, amazon_side_asn: nil, tags: nil) @direct_connect_gateway_name = direct_connect_gateway_name Jsii::Type.check_type(@direct_connect_gateway_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directConnectGatewayName") @amazon_side_asn = amazon_side_asn Jsii::Type.check_type(@amazon_side_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "amazonSideAsn") unless @amazon_side_asn.nil? @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
#amazon_side_asn ⇒ String? (readonly)
The autonomous system number (ASN) for the Amazon side of the connection.
30 31 32 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 30 def amazon_side_asn @amazon_side_asn end |
#direct_connect_gateway_name ⇒ String (readonly)
The name of the Direct Connect gateway.
25 26 27 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 25 def direct_connect_gateway_name @direct_connect_gateway_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the Direct Connect gateway.
35 36 37 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 37 def self.jsii_properties { :direct_connect_gateway_name => "directConnectGatewayName", :amazon_side_asn => "amazonSideAsn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 45 def to_jsii result = {} result.merge!({ "directConnectGatewayName" => @direct_connect_gateway_name, "amazonSideAsn" => @amazon_side_asn, "tags" => @tags, }) result.compact end |