aws-sdk-networkmanager 1.54.0 → 1.56.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,6 +114,8 @@ module Aws::NetworkManager
114
114
  CreateCoreNetworkResponse = Shapes::StructureShape.new(name: 'CreateCoreNetworkResponse')
115
115
  CreateDeviceRequest = Shapes::StructureShape.new(name: 'CreateDeviceRequest')
116
116
  CreateDeviceResponse = Shapes::StructureShape.new(name: 'CreateDeviceResponse')
117
+ CreateDirectConnectGatewayAttachmentRequest = Shapes::StructureShape.new(name: 'CreateDirectConnectGatewayAttachmentRequest')
118
+ CreateDirectConnectGatewayAttachmentResponse = Shapes::StructureShape.new(name: 'CreateDirectConnectGatewayAttachmentResponse')
117
119
  CreateGlobalNetworkRequest = Shapes::StructureShape.new(name: 'CreateGlobalNetworkRequest')
118
120
  CreateGlobalNetworkResponse = Shapes::StructureShape.new(name: 'CreateGlobalNetworkResponse')
119
121
  CreateLinkRequest = Shapes::StructureShape.new(name: 'CreateLinkRequest')
@@ -166,6 +168,8 @@ module Aws::NetworkManager
166
168
  DeviceIdList = Shapes::ListShape.new(name: 'DeviceIdList')
167
169
  DeviceList = Shapes::ListShape.new(name: 'DeviceList')
168
170
  DeviceState = Shapes::StringShape.new(name: 'DeviceState')
171
+ DirectConnectGatewayArn = Shapes::StringShape.new(name: 'DirectConnectGatewayArn')
172
+ DirectConnectGatewayAttachment = Shapes::StructureShape.new(name: 'DirectConnectGatewayAttachment')
169
173
  DisassociateConnectPeerRequest = Shapes::StructureShape.new(name: 'DisassociateConnectPeerRequest')
170
174
  DisassociateConnectPeerResponse = Shapes::StructureShape.new(name: 'DisassociateConnectPeerResponse')
171
175
  DisassociateCustomerGatewayRequest = Shapes::StructureShape.new(name: 'DisassociateCustomerGatewayRequest')
@@ -208,6 +212,8 @@ module Aws::NetworkManager
208
212
  GetCustomerGatewayAssociationsResponse = Shapes::StructureShape.new(name: 'GetCustomerGatewayAssociationsResponse')
209
213
  GetDevicesRequest = Shapes::StructureShape.new(name: 'GetDevicesRequest')
210
214
  GetDevicesResponse = Shapes::StructureShape.new(name: 'GetDevicesResponse')
215
+ GetDirectConnectGatewayAttachmentRequest = Shapes::StructureShape.new(name: 'GetDirectConnectGatewayAttachmentRequest')
216
+ GetDirectConnectGatewayAttachmentResponse = Shapes::StructureShape.new(name: 'GetDirectConnectGatewayAttachmentResponse')
211
217
  GetLinkAssociationsRequest = Shapes::StructureShape.new(name: 'GetLinkAssociationsRequest')
212
218
  GetLinkAssociationsResponse = Shapes::StructureShape.new(name: 'GetLinkAssociationsResponse')
213
219
  GetLinksRequest = Shapes::StructureShape.new(name: 'GetLinksRequest')
@@ -395,6 +401,8 @@ module Aws::NetworkManager
395
401
  UpdateCoreNetworkResponse = Shapes::StructureShape.new(name: 'UpdateCoreNetworkResponse')
396
402
  UpdateDeviceRequest = Shapes::StructureShape.new(name: 'UpdateDeviceRequest')
397
403
  UpdateDeviceResponse = Shapes::StructureShape.new(name: 'UpdateDeviceResponse')
404
+ UpdateDirectConnectGatewayAttachmentRequest = Shapes::StructureShape.new(name: 'UpdateDirectConnectGatewayAttachmentRequest')
405
+ UpdateDirectConnectGatewayAttachmentResponse = Shapes::StructureShape.new(name: 'UpdateDirectConnectGatewayAttachmentResponse')
398
406
  UpdateGlobalNetworkRequest = Shapes::StructureShape.new(name: 'UpdateGlobalNetworkRequest')
399
407
  UpdateGlobalNetworkResponse = Shapes::StructureShape.new(name: 'UpdateGlobalNetworkResponse')
400
408
  UpdateLinkRequest = Shapes::StructureShape.new(name: 'UpdateLinkRequest')
@@ -479,6 +487,7 @@ module Aws::NetworkManager
479
487
  Attachment.add_member(:attachment_type, Shapes::ShapeRef.new(shape: AttachmentType, location_name: "AttachmentType"))
480
488
  Attachment.add_member(:state, Shapes::ShapeRef.new(shape: AttachmentState, location_name: "State"))
481
489
  Attachment.add_member(:edge_location, Shapes::ShapeRef.new(shape: ExternalRegionCode, location_name: "EdgeLocation"))
490
+ Attachment.add_member(:edge_locations, Shapes::ShapeRef.new(shape: ExternalRegionCodeList, location_name: "EdgeLocations"))
482
491
  Attachment.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
483
492
  Attachment.add_member(:attachment_policy_rule_number, Shapes::ShapeRef.new(shape: Integer, location_name: "AttachmentPolicyRuleNumber"))
484
493
  Attachment.add_member(:segment_name, Shapes::ShapeRef.new(shape: ConstrainedString, location_name: "SegmentName"))
@@ -787,6 +796,16 @@ module Aws::NetworkManager
787
796
  CreateDeviceResponse.add_member(:device, Shapes::ShapeRef.new(shape: Device, location_name: "Device"))
788
797
  CreateDeviceResponse.struct_class = Types::CreateDeviceResponse
789
798
 
799
+ CreateDirectConnectGatewayAttachmentRequest.add_member(:core_network_id, Shapes::ShapeRef.new(shape: CoreNetworkId, required: true, location_name: "CoreNetworkId"))
800
+ CreateDirectConnectGatewayAttachmentRequest.add_member(:direct_connect_gateway_arn, Shapes::ShapeRef.new(shape: DirectConnectGatewayArn, required: true, location_name: "DirectConnectGatewayArn"))
801
+ CreateDirectConnectGatewayAttachmentRequest.add_member(:edge_locations, Shapes::ShapeRef.new(shape: ExternalRegionCodeList, required: true, location_name: "EdgeLocations"))
802
+ CreateDirectConnectGatewayAttachmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
803
+ CreateDirectConnectGatewayAttachmentRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
804
+ CreateDirectConnectGatewayAttachmentRequest.struct_class = Types::CreateDirectConnectGatewayAttachmentRequest
805
+
806
+ CreateDirectConnectGatewayAttachmentResponse.add_member(:direct_connect_gateway_attachment, Shapes::ShapeRef.new(shape: DirectConnectGatewayAttachment, location_name: "DirectConnectGatewayAttachment"))
807
+ CreateDirectConnectGatewayAttachmentResponse.struct_class = Types::CreateDirectConnectGatewayAttachmentResponse
808
+
790
809
  CreateGlobalNetworkRequest.add_member(:description, Shapes::ShapeRef.new(shape: ConstrainedString, location_name: "Description"))
791
810
  CreateGlobalNetworkRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
792
811
  CreateGlobalNetworkRequest.struct_class = Types::CreateGlobalNetworkRequest
@@ -970,6 +989,10 @@ module Aws::NetworkManager
970
989
 
971
990
  DeviceList.member = Shapes::ShapeRef.new(shape: Device)
972
991
 
992
+ DirectConnectGatewayAttachment.add_member(:attachment, Shapes::ShapeRef.new(shape: Attachment, location_name: "Attachment"))
993
+ DirectConnectGatewayAttachment.add_member(:direct_connect_gateway_arn, Shapes::ShapeRef.new(shape: DirectConnectGatewayArn, location_name: "DirectConnectGatewayArn"))
994
+ DirectConnectGatewayAttachment.struct_class = Types::DirectConnectGatewayAttachment
995
+
973
996
  DisassociateConnectPeerRequest.add_member(:global_network_id, Shapes::ShapeRef.new(shape: GlobalNetworkId, required: true, location: "uri", location_name: "globalNetworkId"))
974
997
  DisassociateConnectPeerRequest.add_member(:connect_peer_id, Shapes::ShapeRef.new(shape: ConnectPeerId, required: true, location: "uri", location_name: "connectPeerId"))
975
998
  DisassociateConnectPeerRequest.struct_class = Types::DisassociateConnectPeerRequest
@@ -1111,6 +1134,12 @@ module Aws::NetworkManager
1111
1134
  GetDevicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
1112
1135
  GetDevicesResponse.struct_class = Types::GetDevicesResponse
1113
1136
 
1137
+ GetDirectConnectGatewayAttachmentRequest.add_member(:attachment_id, Shapes::ShapeRef.new(shape: AttachmentId, required: true, location: "uri", location_name: "attachmentId"))
1138
+ GetDirectConnectGatewayAttachmentRequest.struct_class = Types::GetDirectConnectGatewayAttachmentRequest
1139
+
1140
+ GetDirectConnectGatewayAttachmentResponse.add_member(:direct_connect_gateway_attachment, Shapes::ShapeRef.new(shape: DirectConnectGatewayAttachment, location_name: "DirectConnectGatewayAttachment"))
1141
+ GetDirectConnectGatewayAttachmentResponse.struct_class = Types::GetDirectConnectGatewayAttachmentResponse
1142
+
1114
1143
  GetLinkAssociationsRequest.add_member(:global_network_id, Shapes::ShapeRef.new(shape: GlobalNetworkId, required: true, location: "uri", location_name: "globalNetworkId"))
1115
1144
  GetLinkAssociationsRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, location: "querystring", location_name: "deviceId"))
1116
1145
  GetLinkAssociationsRequest.add_member(:link_id, Shapes::ShapeRef.new(shape: LinkId, location: "querystring", location_name: "linkId"))
@@ -1743,6 +1772,13 @@ module Aws::NetworkManager
1743
1772
  UpdateDeviceResponse.add_member(:device, Shapes::ShapeRef.new(shape: Device, location_name: "Device"))
1744
1773
  UpdateDeviceResponse.struct_class = Types::UpdateDeviceResponse
1745
1774
 
1775
+ UpdateDirectConnectGatewayAttachmentRequest.add_member(:attachment_id, Shapes::ShapeRef.new(shape: AttachmentId, required: true, location: "uri", location_name: "attachmentId"))
1776
+ UpdateDirectConnectGatewayAttachmentRequest.add_member(:edge_locations, Shapes::ShapeRef.new(shape: ExternalRegionCodeList, location_name: "EdgeLocations"))
1777
+ UpdateDirectConnectGatewayAttachmentRequest.struct_class = Types::UpdateDirectConnectGatewayAttachmentRequest
1778
+
1779
+ UpdateDirectConnectGatewayAttachmentResponse.add_member(:direct_connect_gateway_attachment, Shapes::ShapeRef.new(shape: DirectConnectGatewayAttachment, location_name: "DirectConnectGatewayAttachment"))
1780
+ UpdateDirectConnectGatewayAttachmentResponse.struct_class = Types::UpdateDirectConnectGatewayAttachmentResponse
1781
+
1746
1782
  UpdateGlobalNetworkRequest.add_member(:global_network_id, Shapes::ShapeRef.new(shape: GlobalNetworkId, required: true, location: "uri", location_name: "globalNetworkId"))
1747
1783
  UpdateGlobalNetworkRequest.add_member(:description, Shapes::ShapeRef.new(shape: ConstrainedString, location_name: "Description"))
1748
1784
  UpdateGlobalNetworkRequest.struct_class = Types::UpdateGlobalNetworkRequest
@@ -1986,6 +2022,20 @@ module Aws::NetworkManager
1986
2022
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1987
2023
  end)
1988
2024
 
2025
+ api.add_operation(:create_direct_connect_gateway_attachment, Seahorse::Model::Operation.new.tap do |o|
2026
+ o.name = "CreateDirectConnectGatewayAttachment"
2027
+ o.http_method = "POST"
2028
+ o.http_request_uri = "/direct-connect-gateway-attachments"
2029
+ o.input = Shapes::ShapeRef.new(shape: CreateDirectConnectGatewayAttachmentRequest)
2030
+ o.output = Shapes::ShapeRef.new(shape: CreateDirectConnectGatewayAttachmentResponse)
2031
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2032
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2033
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2034
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2035
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2036
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2037
+ end)
2038
+
1989
2039
  api.add_operation(:create_global_network, Seahorse::Model::Operation.new.tap do |o|
1990
2040
  o.name = "CreateGlobalNetwork"
1991
2041
  o.http_method = "POST"
@@ -2510,6 +2560,19 @@ module Aws::NetworkManager
2510
2560
  )
2511
2561
  end)
2512
2562
 
2563
+ api.add_operation(:get_direct_connect_gateway_attachment, Seahorse::Model::Operation.new.tap do |o|
2564
+ o.name = "GetDirectConnectGatewayAttachment"
2565
+ o.http_method = "GET"
2566
+ o.http_request_uri = "/direct-connect-gateway-attachments/{attachmentId}"
2567
+ o.input = Shapes::ShapeRef.new(shape: GetDirectConnectGatewayAttachmentRequest)
2568
+ o.output = Shapes::ShapeRef.new(shape: GetDirectConnectGatewayAttachmentResponse)
2569
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2570
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2571
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2572
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2573
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2574
+ end)
2575
+
2513
2576
  api.add_operation(:get_link_associations, Seahorse::Model::Operation.new.tap do |o|
2514
2577
  o.name = "GetLinkAssociations"
2515
2578
  o.http_method = "GET"
@@ -3053,6 +3116,20 @@ module Aws::NetworkManager
3053
3116
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3054
3117
  end)
3055
3118
 
3119
+ api.add_operation(:update_direct_connect_gateway_attachment, Seahorse::Model::Operation.new.tap do |o|
3120
+ o.name = "UpdateDirectConnectGatewayAttachment"
3121
+ o.http_method = "PATCH"
3122
+ o.http_request_uri = "/direct-connect-gateway-attachments/{attachmentId}"
3123
+ o.input = Shapes::ShapeRef.new(shape: UpdateDirectConnectGatewayAttachmentRequest)
3124
+ o.output = Shapes::ShapeRef.new(shape: UpdateDirectConnectGatewayAttachmentResponse)
3125
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3126
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3127
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3128
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3129
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3130
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3131
+ end)
3132
+
3056
3133
  api.add_operation(:update_global_network, Seahorse::Model::Operation.new.tap do |o|
3057
3134
  o.name = "UpdateGlobalNetwork"
3058
3135
  o.http_method = "PATCH"
@@ -52,15 +52,18 @@ module Aws::NetworkManager
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end