Class: AWSCDK::NetworkManager::CfnConnectPeerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnConnectPeerProps
- Defined in:
- network_manager/cfn_connect_peer_props.rb
Overview
Properties for defining a CfnConnectPeer.
Instance Attribute Summary collapse
-
#bgp_options ⇒ AWSCDK::IResolvable, ...
readonly
Describes the BGP options.
-
#connect_attachment_id ⇒ String
readonly
The ID of the attachment to connect.
-
#core_network_address ⇒ String?
readonly
The IP address of a core network.
-
#inside_cidr_blocks ⇒ Array<String>?
readonly
The inside IP addresses used for a Connect peer configuration.
-
#peer_address ⇒ String
readonly
The IP address of the Connect peer.
-
#subnet_arn ⇒ String?
readonly
The subnet ARN of the Connect peer.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The list of key-value tags associated with the Connect peer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connect_attachment_id:, peer_address:, bgp_options: nil, core_network_address: nil, inside_cidr_blocks: nil, subnet_arn: nil, tags: nil) ⇒ CfnConnectPeerProps
constructor
A new instance of CfnConnectPeerProps.
- #to_jsii ⇒ Object
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.
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 = 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 = .is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnConnectPeer::BgpOptionsProperty.new(**.transform_keys(&:to_sym)) : 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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#bgp_options ⇒ AWSCDK::IResolvable, ... (readonly)
Describes the BGP options.
47 48 49 |
# File 'network_manager/cfn_connect_peer_props.rb', line 47 def @bgp_options end |
#connect_attachment_id ⇒ String (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 end |
#core_network_address ⇒ String? (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_blocks ⇒ Array<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_address ⇒ String (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_arn ⇒ String? (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |