Class: AWSCDK::NetworkManager::CfnDirectConnectGatewayAttachmentProps

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

Overview

Properties for defining a CfnDirectConnectGatewayAttachment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(core_network_id:, direct_connect_gateway_arn:, edge_locations:, proposed_network_function_group_change: nil, proposed_segment_change: nil, routing_policy_label: nil, tags: nil) ⇒ CfnDirectConnectGatewayAttachmentProps

Returns a new instance of CfnDirectConnectGatewayAttachmentProps.

Parameters:



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

def initialize(core_network_id:, direct_connect_gateway_arn:, edge_locations:, 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")
  @direct_connect_gateway_arn = direct_connect_gateway_arn
  Jsii::Type.check_type(@direct_connect_gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directConnectGatewayArn")
  @edge_locations = edge_locations
  Jsii::Type.check_type(@edge_locations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "edgeLocations")
  @proposed_network_function_group_change = proposed_network_function_group_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnDirectConnectGatewayAttachment::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5EaXJlY3RDb25uZWN0R2F0ZXdheUF0dGFjaG1lbnQuUHJvcG9zZWROZXR3b3JrRnVuY3Rpb25Hcm91cENoYW5nZVByb3BlcnR5In1dfX0=")), "proposedNetworkFunctionGroupChange") unless @proposed_network_function_group_change.nil?
  @proposed_segment_change = proposed_segment_change.is_a?(Hash) ? ::AWSCDK::NetworkManager::CfnDirectConnectGatewayAttachment::ProposedSegmentChangeProperty.new(**proposed_segment_change.transform_keys(&:to_sym)) : proposed_segment_change
  Jsii::Type.check_type(@proposed_segment_change, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrbWFuYWdlci5DZm5EaXJlY3RDb25uZWN0R2F0ZXdheUF0dGFjaG1lbnQuUHJvcG9zZWRTZWdtZW50Q2hhbmdlUHJvcGVydHkifV19fQ==")), "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 = 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

#core_network_idString (readonly)

The ID of a core network for the Direct Connect Gateway attachment.



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

def core_network_id
  @core_network_id
end

#direct_connect_gateway_arnString (readonly)

The Direct Connect gateway attachment ARN.



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

def direct_connect_gateway_arn
  @direct_connect_gateway_arn
end

#edge_locationsArray<String> (readonly)

The Regions where the edges are located.



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

def edge_locations
  @edge_locations
end

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

Describes proposed changes to a network function group.



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

def proposed_network_function_group_change
  @proposed_network_function_group_change
end

#proposed_segment_changeAWSCDK::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_direct_connect_gateway_attachment_props.rb', line 59

def proposed_segment_change
  @proposed_segment_change
end

#routing_policy_labelString? (readonly)

Routing policy label.



64
65
66
# File 'network_manager/cfn_direct_connect_gateway_attachment_props.rb', line 64

def routing_policy_label
  @routing_policy_label
end

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

Tags for the attachment.



69
70
71
# File 'network_manager/cfn_direct_connect_gateway_attachment_props.rb', line 69

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



71
72
73
74
75
76
77
78
79
80
81
# File 'network_manager/cfn_direct_connect_gateway_attachment_props.rb', line 71

def self.jsii_properties
  {
    :core_network_id => "coreNetworkId",
    :direct_connect_gateway_arn => "directConnectGatewayArn",
    :edge_locations => "edgeLocations",
    :proposed_network_function_group_change => "proposedNetworkFunctionGroupChange",
    :proposed_segment_change => "proposedSegmentChange",
    :routing_policy_label => "routingPolicyLabel",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'network_manager/cfn_direct_connect_gateway_attachment_props.rb', line 83

def to_jsii
  result = {}
  result.merge!({
    "coreNetworkId" => @core_network_id,
    "directConnectGatewayArn" => @direct_connect_gateway_arn,
    "edgeLocations" => @edge_locations,
    "proposedNetworkFunctionGroupChange" => @proposed_network_function_group_change,
    "proposedSegmentChange" => @proposed_segment_change,
    "routingPolicyLabel" => @routing_policy_label,
    "tags" => @tags,
  })
  result.compact
end