Class: AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty
- Defined in:
- network_manager/cfn_connect_peer.rb
Overview
Describes the BGP options.
Instance Attribute Summary collapse
-
#peer_asn ⇒ Numeric?
readonly
The Peer ASN of the BGP.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(peer_asn: nil) ⇒ BgpOptionsProperty
constructor
A new instance of BgpOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(peer_asn: nil) ⇒ BgpOptionsProperty
Returns a new instance of BgpOptionsProperty.
669 670 671 672 |
# File 'network_manager/cfn_connect_peer.rb', line 669 def initialize(peer_asn: nil) @peer_asn = peer_asn Jsii::Type.check_type(@peer_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "peerAsn") unless @peer_asn.nil? end |
Instance Attribute Details
#peer_asn ⇒ Numeric? (readonly)
The Peer ASN of the BGP.
678 679 680 |
# File 'network_manager/cfn_connect_peer.rb', line 678 def peer_asn @peer_asn end |
Class Method Details
.jsii_properties ⇒ Object
680 681 682 683 684 |
# File 'network_manager/cfn_connect_peer.rb', line 680 def self.jsii_properties { :peer_asn => "peerAsn", } end |
Instance Method Details
#to_jsii ⇒ Object
686 687 688 689 690 691 692 |
# File 'network_manager/cfn_connect_peer.rb', line 686 def to_jsii result = {} result.merge!({ "peerAsn" => @peer_asn, }) result.compact end |