Class: AWSCDK::Directconnect::CfnTransitVirtualInterface::BgpPeerProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
directconnect/cfn_transit_virtual_interface.rb

Overview

A key-value pair to associate with a resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address_family:, asn:, amazon_address: nil, auth_key: nil, bgp_peer_id: nil, customer_address: nil) ⇒ BgpPeerProperty

Returns a new instance of BgpPeerProperty.

Parameters:

  • address_family (String)

    The address family for the BGP peer.

  • asn (String)

    The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

  • amazon_address (String, nil) (defaults to: nil)

    The IP address assigned to the Amazon interface.

  • auth_key (String, nil) (defaults to: nil)

    The authentication key for BGP configuration.

  • bgp_peer_id (String, nil) (defaults to: nil)
  • customer_address (String, nil) (defaults to: nil)

    The IP address assigned to the customer interface.



623
624
625
626
627
628
629
630
631
632
633
634
635
636
# File 'directconnect/cfn_transit_virtual_interface.rb', line 623

def initialize(address_family:, asn:, amazon_address: nil, auth_key: nil, bgp_peer_id: nil, customer_address: nil)
  @address_family = address_family
  Jsii::Type.check_type(@address_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "addressFamily")
  @asn = asn
  Jsii::Type.check_type(@asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "asn")
  @amazon_address = amazon_address
  Jsii::Type.check_type(@amazon_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "amazonAddress") unless @amazon_address.nil?
  @auth_key = auth_key
  Jsii::Type.check_type(@auth_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authKey") unless @auth_key.nil?
  @bgp_peer_id = bgp_peer_id
  Jsii::Type.check_type(@bgp_peer_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bgpPeerId") unless @bgp_peer_id.nil?
  @customer_address = customer_address
  Jsii::Type.check_type(@customer_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerAddress") unless @customer_address.nil?
end

Instance Attribute Details

#address_familyString (readonly)

The address family for the BGP peer.



642
643
644
# File 'directconnect/cfn_transit_virtual_interface.rb', line 642

def address_family
  @address_family
end

#amazon_addressString? (readonly)

The IP address assigned to the Amazon interface.



652
653
654
# File 'directconnect/cfn_transit_virtual_interface.rb', line 652

def amazon_address
  @amazon_address
end

#asnString (readonly)

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.



647
648
649
# File 'directconnect/cfn_transit_virtual_interface.rb', line 647

def asn
  @asn
end

#auth_keyString? (readonly)

The authentication key for BGP configuration.

This string has a minimum length of 6 characters and and a maximum length of 80 characters.



659
660
661
# File 'directconnect/cfn_transit_virtual_interface.rb', line 659

def auth_key
  @auth_key
end

#bgp_peer_idString? (readonly)



662
663
664
# File 'directconnect/cfn_transit_virtual_interface.rb', line 662

def bgp_peer_id
  @bgp_peer_id
end

#customer_addressString? (readonly)

The IP address assigned to the customer interface.



667
668
669
# File 'directconnect/cfn_transit_virtual_interface.rb', line 667

def customer_address
  @customer_address
end

Class Method Details

.jsii_propertiesObject



669
670
671
672
673
674
675
676
677
678
# File 'directconnect/cfn_transit_virtual_interface.rb', line 669

def self.jsii_properties
  {
    :address_family => "addressFamily",
    :asn => "asn",
    :amazon_address => "amazonAddress",
    :auth_key => "authKey",
    :bgp_peer_id => "bgpPeerId",
    :customer_address => "customerAddress",
  }
end

Instance Method Details

#to_jsiiObject



680
681
682
683
684
685
686
687
688
689
690
691
# File 'directconnect/cfn_transit_virtual_interface.rb', line 680

def to_jsii
  result = {}
  result.merge!({
    "addressFamily" => @address_family,
    "asn" => @asn,
    "amazonAddress" => @amazon_address,
    "authKey" => @auth_key,
    "bgpPeerId" => @bgp_peer_id,
    "customerAddress" => @customer_address,
  })
  result.compact
end