Class: AWSCDK::NetworkManager::CfnConnectPeerProps

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

Overview

Properties for defining a CfnConnectPeer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connect_attachment_id:, peer_address:, bgp_options: nil, core_network_address: nil, inside_cidr_blocks: nil, subnet_arn: nil, tags: nil) ⇒ CfnConnectPeerProps

Returns a new instance of CfnConnectPeerProps.

Parameters:

  • connect_attachment_id (String)

    The ID of the attachment to connect.

  • peer_address (String)

    The IP address of the Connect peer.

  • bgp_options (AWSCDK::IResolvable, AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty, nil) (defaults to: nil)

    Describes the BGP options.

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

    The IP address of a core network.

  • inside_cidr_blocks (Array<String>, nil) (defaults to: nil)

    The inside IP addresses used for a Connect peer configuration.

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

    The subnet ARN of the Connect peer.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The list of key-value tags associated with the Connect peer.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'network_manager/cfn_connect_peer_props.rb', line 16

def initialize(connect_attachment_id:, peer_address:, bgp_options: nil, core_network_address: nil, inside_cidr_blocks: nil, subnet_arn: nil, tags: nil)
  @connect_attachment_id = connect_attachment_id
  Jsii::Type.check_type(@connect_attachment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectAttachmentId")
  @peer_address = peer_address
  Jsii::Type.check_type(@peer_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "peerAddress")
  @bgp_options = bgp_options.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty.new(**bgp_options.transform_keys(&:to_sym)) : bgp_options
  Jsii::Type.check_type(@bgp_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5Db25uZWN0UGVlci5CZ3BPcHRpb25zUHJvcGVydHkifV19fQ==")), "bgpOptions") unless @bgp_options.nil?
  @core_network_address = core_network_address
  Jsii::Type.check_type(@core_network_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreNetworkAddress") unless @core_network_address.nil?
  @inside_cidr_blocks = inside_cidr_blocks
  Jsii::Type.check_type(@inside_cidr_blocks, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "insideCidrBlocks") unless @inside_cidr_blocks.nil?
  @subnet_arn = subnet_arn
  Jsii::Type.check_type(@subnet_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetArn") unless @subnet_arn.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#bgp_optionsAWSCDK::IResolvable, ... (readonly)

Describes the BGP options.



47
48
49
# File 'network_manager/cfn_connect_peer_props.rb', line 47

def bgp_options
  @bgp_options
end

#connect_attachment_idString (readonly)

The ID of the attachment to connect.



37
38
39
# File 'network_manager/cfn_connect_peer_props.rb', line 37

def connect_attachment_id
  @connect_attachment_id
end

#core_network_addressString? (readonly)

The IP address of a core network.



52
53
54
# File 'network_manager/cfn_connect_peer_props.rb', line 52

def core_network_address
  @core_network_address
end

#inside_cidr_blocksArray<String>? (readonly)

The inside IP addresses used for a Connect peer configuration.



57
58
59
# File 'network_manager/cfn_connect_peer_props.rb', line 57

def inside_cidr_blocks
  @inside_cidr_blocks
end

#peer_addressString (readonly)

The IP address of the Connect peer.



42
43
44
# File 'network_manager/cfn_connect_peer_props.rb', line 42

def peer_address
  @peer_address
end

#subnet_arnString? (readonly)

The subnet ARN of the Connect peer.



62
63
64
# File 'network_manager/cfn_connect_peer_props.rb', line 62

def subnet_arn
  @subnet_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The list of key-value tags associated with the Connect peer.



67
68
69
# File 'network_manager/cfn_connect_peer_props.rb', line 67

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



69
70
71
72
73
74
75
76
77
78
79
# File 'network_manager/cfn_connect_peer_props.rb', line 69

def self.jsii_properties
  {
    :connect_attachment_id => "connectAttachmentId",
    :peer_address => "peerAddress",
    :bgp_options => "bgpOptions",
    :core_network_address => "coreNetworkAddress",
    :inside_cidr_blocks => "insideCidrBlocks",
    :subnet_arn => "subnetArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'network_manager/cfn_connect_peer_props.rb', line 81

def to_jsii
  result = {}
  result.merge!({
    "connectAttachmentId" => @connect_attachment_id,
    "peerAddress" => @peer_address,
    "bgpOptions" => @bgp_options,
    "coreNetworkAddress" => @core_network_address,
    "insideCidrBlocks" => @inside_cidr_blocks,
    "subnetArn" => @subnet_arn,
    "tags" => @tags,
  })
  result.compact
end