Class: AWSCDK::NetworkManager::CfnSiteToSiteVpnAttachmentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkManager::CfnSiteToSiteVpnAttachmentProps
- Defined in:
- network_manager/cfn_site_to_site_vpn_attachment_props.rb
Overview
Properties for defining a CfnSiteToSiteVpnAttachment.
Instance Attribute Summary collapse
-
#core_network_id ⇒ String
readonly
The ID of a core network where you're creating a site-to-site VPN attachment.
-
#network_function_group_name ⇒ String?
readonly
The name of the network function group.
-
#proposed_network_function_group_change ⇒ AWSCDK::IResolvable, ...
readonly
Describes proposed changes to a network function group.
-
#proposed_segment_change ⇒ AWSCDK::IResolvable, ...
readonly
Describes a proposed segment change.
-
#routing_policy_label ⇒ String?
readonly
Routing policy label.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the Site-to-Site VPN attachment.
-
#vpn_connection_arn ⇒ String
readonly
The ARN of the site-to-site VPN attachment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(core_network_id:, vpn_connection_arn:, network_function_group_name: nil, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil) ⇒ CfnSiteToSiteVpnAttachmentProps
constructor
A new instance of CfnSiteToSiteVpnAttachmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(core_network_id:, vpn_connection_arn:, network_function_group_name: nil, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil) ⇒ CfnSiteToSiteVpnAttachmentProps
Returns a new instance of CfnSiteToSiteVpnAttachmentProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 16 def initialize(core_network_id:, vpn_connection_arn:, network_function_group_name: nil, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil) @core_network_id = core_network_id Jsii::Type.check_type(@core_network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "coreNetworkId") @vpn_connection_arn = vpn_connection_arn Jsii::Type.check_type(@vpn_connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpnConnectionArn") @network_function_group_name = network_function_group_name Jsii::Type.check_type(@network_function_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkFunctionGroupName") unless @network_function_group_name.nil? @proposed_network_function_group_change = proposed_network_function_group_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnSiteToSiteVpnAttachment::ProposedNetworkFunctionGroupChangeProperty.new(**proposed_network_function_group_change.transform_keys(&:to_sym)) : proposed_network_function_group_change Jsii::Type.check_type(@proposed_network_function_group_change, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5TaXRlVG9TaXRlVnBuQXR0YWNobWVudC5Qcm9wb3NlZE5ldHdvcmtGdW5jdGlvbkdyb3VwQ2hhbmdlUHJvcGVydHkifV19fQ==")), "proposedNetworkFunctionGroupChange") unless @proposed_network_function_group_change.nil? @proposed_segment_change = proposed_segment_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnSiteToSiteVpnAttachment::ProposedSegmentChangeProperty.new(**proposed_segment_change.transform_keys(&:to_sym)) : proposed_segment_change Jsii::Type.check_type(@proposed_segment_change, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5TaXRlVG9TaXRlVnBuQXR0YWNobWVudC5Qcm9wb3NlZFNlZ21lbnRDaGFuZ2VQcm9wZXJ0eSJ9XX19")), "proposedSegmentChange") unless @proposed_segment_change.nil? @routing_policy_label = routing_policy_label Jsii::Type.check_type(@routing_policy_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "routingPolicyLabel") unless @routing_policy_label.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
#core_network_id ⇒ String (readonly)
The ID of a core network where you're creating a site-to-site VPN attachment.
37 38 39 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 37 def core_network_id @core_network_id end |
#network_function_group_name ⇒ String? (readonly)
The name of the network function group.
47 48 49 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 47 def network_function_group_name @network_function_group_name end |
#proposed_network_function_group_change ⇒ AWSCDK::IResolvable, ... (readonly)
Describes proposed changes to a network function group.
52 53 54 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 52 def proposed_network_function_group_change @proposed_network_function_group_change end |
#proposed_segment_change ⇒ AWSCDK::IResolvable, ... (readonly)
Describes a proposed segment change.
In some cases, the segment change must first be evaluated and accepted.
59 60 61 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 59 def proposed_segment_change @proposed_segment_change end |
#routing_policy_label ⇒ String? (readonly)
Routing policy label.
64 65 66 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 64 def routing_policy_label @routing_policy_label end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the Site-to-Site VPN attachment.
69 70 71 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 69 def @tags end |
#vpn_connection_arn ⇒ String (readonly)
The ARN of the site-to-site VPN attachment.
42 43 44 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 42 def vpn_connection_arn @vpn_connection_arn end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 71 def self.jsii_properties { :core_network_id => "coreNetworkId", :vpn_connection_arn => "vpnConnectionArn", :network_function_group_name => "networkFunctionGroupName", :proposed_network_function_group_change => "proposedNetworkFunctionGroupChange", :proposed_segment_change => "proposedSegmentChange", :routing_policy_label => "routingPolicyLabel", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'network_manager/cfn_site_to_site_vpn_attachment_props.rb', line 83 def to_jsii result = {} result.merge!({ "coreNetworkId" => @core_network_id, "vpnConnectionArn" => @vpn_connection_arn, "networkFunctionGroupName" => @network_function_group_name, "proposedNetworkFunctionGroupChange" => @proposed_network_function_group_change, "proposedSegmentChange" => @proposed_segment_change, "routingPolicyLabel" => @routing_policy_label, "tags" => @tags, }) result.compact end |