Class: AWSCDK::EC2::CfnRouteServerPeer::BgpOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnRouteServerPeer::BgpOptionsProperty
- Defined in:
- ec2/cfn_route_server_peer.rb
Overview
The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.
Instance Attribute Summary collapse
-
#peer_asn ⇒ Numeric?
readonly
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance.
-
#peer_liveness_detection ⇒ String?
readonly
The liveness detection protocol used for the BGP peer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(peer_asn: nil, peer_liveness_detection: nil) ⇒ BgpOptionsProperty
constructor
A new instance of BgpOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(peer_asn: nil, peer_liveness_detection: nil) ⇒ BgpOptionsProperty
Returns a new instance of BgpOptionsProperty.
634 635 636 637 638 639 |
# File 'ec2/cfn_route_server_peer.rb', line 634 def initialize(peer_asn: nil, peer_liveness_detection: nil) @peer_asn = peer_asn Jsii::Type.check_type(@peer_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "peerAsn") unless @peer_asn.nil? @peer_liveness_detection = peer_liveness_detection Jsii::Type.check_type(@peer_liveness_detection, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "peerLivenessDetection") unless @peer_liveness_detection.nil? end |
Instance Attribute Details
#peer_asn ⇒ Numeric? (readonly)
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance.
Valid values are from 1 to 4294967295. We recommend using a private ASN in the 64512–65534 (16-bit ASN) or 4200000000–4294967294 (32-bit ASN) range.
647 648 649 |
# File 'ec2/cfn_route_server_peer.rb', line 647 def peer_asn @peer_asn end |
#peer_liveness_detection ⇒ String? (readonly)
The liveness detection protocol used for the BGP peer.
The requested liveness detection protocol for the BGP peer.
bgp-keepalive: The standard BGP keep alive mechanism ( RFC4271 ) that is stable but may take longer to fail-over in cases of network impact or router failure.bfd: An additional Bidirectional Forwarding Detection (BFD) protocol ( RFC5880 ) that enables fast failover by using more sensitive liveness detection.
Defaults to bgp-keepalive .
659 660 661 |
# File 'ec2/cfn_route_server_peer.rb', line 659 def peer_liveness_detection @peer_liveness_detection end |
Class Method Details
.jsii_properties ⇒ Object
661 662 663 664 665 666 |
# File 'ec2/cfn_route_server_peer.rb', line 661 def self.jsii_properties { :peer_asn => "peerAsn", :peer_liveness_detection => "peerLivenessDetection", } end |
Instance Method Details
#to_jsii ⇒ Object
668 669 670 671 672 673 674 675 |
# File 'ec2/cfn_route_server_peer.rb', line 668 def to_jsii result = {} result.merge!({ "peerAsn" => @peer_asn, "peerLivenessDetection" => @peer_liveness_detection, }) result.compact end |