Class: AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceGroupProps
- Defined in:
- ec2/cfn_local_gateway_virtual_interface_group_props.rb
Overview
Properties for defining a CfnLocalGatewayVirtualInterfaceGroup.
Instance Attribute Summary collapse
-
#local_bgp_asn ⇒ Numeric?
readonly
The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).
-
#local_bgp_asn_extended ⇒ Numeric?
readonly
The extended 32-bit ASN for the local BGP configuration.
-
#local_gateway_id ⇒ String
readonly
The ID of the local gateway.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the virtual interface group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(local_gateway_id:, local_bgp_asn: nil, local_bgp_asn_extended: nil, tags: nil) ⇒ CfnLocalGatewayVirtualInterfaceGroupProps
constructor
A new instance of CfnLocalGatewayVirtualInterfaceGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(local_gateway_id:, local_bgp_asn: nil, local_bgp_asn_extended: nil, tags: nil) ⇒ CfnLocalGatewayVirtualInterfaceGroupProps
Returns a new instance of CfnLocalGatewayVirtualInterfaceGroupProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 13 def initialize(local_gateway_id:, local_bgp_asn: nil, local_bgp_asn_extended: nil, tags: nil) @local_gateway_id = local_gateway_id Jsii::Type.check_type(@local_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localGatewayId") @local_bgp_asn = local_bgp_asn Jsii::Type.check_type(@local_bgp_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "localBgpAsn") unless @local_bgp_asn.nil? @local_bgp_asn_extended = local_bgp_asn_extended Jsii::Type.check_type(@local_bgp_asn_extended, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "localBgpAsnExtended") unless @local_bgp_asn_extended.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
#local_bgp_asn ⇒ Numeric? (readonly)
The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).
33 34 35 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 33 def local_bgp_asn @local_bgp_asn end |
#local_bgp_asn_extended ⇒ Numeric? (readonly)
The extended 32-bit ASN for the local BGP configuration.
38 39 40 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 38 def local_bgp_asn_extended @local_bgp_asn_extended end |
#local_gateway_id ⇒ String (readonly)
The ID of the local gateway.
28 29 30 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 28 def local_gateway_id @local_gateway_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags assigned to the virtual interface group.
43 44 45 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 45 def self.jsii_properties { :local_gateway_id => "localGatewayId", :local_bgp_asn => "localBgpAsn", :local_bgp_asn_extended => "localBgpAsnExtended", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 54 def to_jsii result = {} result.merge!({ "localGatewayId" => @local_gateway_id, "localBgpAsn" => @local_bgp_asn, "localBgpAsnExtended" => @local_bgp_asn_extended, "tags" => @tags, }) result.compact end |