Class: AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_manager/cfn_connect_peer.rb

Overview

Describes the BGP options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(peer_asn: nil) ⇒ BgpOptionsProperty

Returns a new instance of BgpOptionsProperty.

Parameters:

  • peer_asn (Numeric, nil) (defaults to: nil)

    The Peer ASN of the BGP.



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_asnNumeric? (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_propertiesObject



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_jsiiObject



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