Class: AWSCDK::EC2::CfnTransitGatewayConnectPeer::TransitGatewayAttachmentBgpConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_transit_gateway_connect_peer.rb

Overview

The BGP configuration information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bgp_status: nil, peer_address: nil, peer_asn: nil, transit_gateway_address: nil, transit_gateway_asn: nil) ⇒ TransitGatewayAttachmentBgpConfigurationProperty

Returns a new instance of TransitGatewayAttachmentBgpConfigurationProperty.

Parameters:

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

    The BGP status.

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

    The interior BGP peer IP address for the appliance.

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

    The peer Autonomous System Number (ASN).

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

    The interior BGP peer IP address for the transit gateway.

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

    The transit gateway Autonomous System Number (ASN).



593
594
595
596
597
598
599
600
601
602
603
604
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 593

def initialize(bgp_status: nil, peer_address: nil, peer_asn: nil, transit_gateway_address: nil, transit_gateway_asn: nil)
  @bgp_status = bgp_status
  Jsii::Type.check_type(@bgp_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bgpStatus") unless @bgp_status.nil?
  @peer_address = peer_address
  Jsii::Type.check_type(@peer_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "peerAddress") unless @peer_address.nil?
  @peer_asn = peer_asn
  Jsii::Type.check_type(@peer_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "peerAsn") unless @peer_asn.nil?
  @transit_gateway_address = transit_gateway_address
  Jsii::Type.check_type(@transit_gateway_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transitGatewayAddress") unless @transit_gateway_address.nil?
  @transit_gateway_asn = transit_gateway_asn
  Jsii::Type.check_type(@transit_gateway_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "transitGatewayAsn") unless @transit_gateway_asn.nil?
end

Instance Attribute Details

#bgp_statusString? (readonly)

The BGP status.



610
611
612
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 610

def bgp_status
  @bgp_status
end

#peer_addressString? (readonly)

The interior BGP peer IP address for the appliance.



615
616
617
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 615

def peer_address
  @peer_address
end

#peer_asnNumeric? (readonly)

The peer Autonomous System Number (ASN).



620
621
622
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 620

def peer_asn
  @peer_asn
end

#transit_gateway_addressString? (readonly)

The interior BGP peer IP address for the transit gateway.



625
626
627
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 625

def transit_gateway_address
  @transit_gateway_address
end

#transit_gateway_asnNumeric? (readonly)

The transit gateway Autonomous System Number (ASN).



630
631
632
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 630

def transit_gateway_asn
  @transit_gateway_asn
end

Class Method Details

.jsii_propertiesObject



632
633
634
635
636
637
638
639
640
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 632

def self.jsii_properties
  {
    :bgp_status => "bgpStatus",
    :peer_address => "peerAddress",
    :peer_asn => "peerAsn",
    :transit_gateway_address => "transitGatewayAddress",
    :transit_gateway_asn => "transitGatewayAsn",
  }
end

Instance Method Details

#to_jsiiObject



642
643
644
645
646
647
648
649
650
651
652
# File 'ec2/cfn_transit_gateway_connect_peer.rb', line 642

def to_jsii
  result = {}
  result.merge!({
    "bgpStatus" => @bgp_status,
    "peerAddress" => @peer_address,
    "peerAsn" => @peer_asn,
    "transitGatewayAddress" => @transit_gateway_address,
    "transitGatewayAsn" => @transit_gateway_asn,
  })
  result.compact
end