@aws-sdk/client-networkmanager 3.699.0 → 3.709.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +152 -4
  3. package/dist-es/NetworkManager.js +6 -0
  4. package/dist-es/commands/CreateDirectConnectGatewayAttachmentCommand.js +22 -0
  5. package/dist-es/commands/GetDirectConnectGatewayAttachmentCommand.js +22 -0
  6. package/dist-es/commands/UpdateDirectConnectGatewayAttachmentCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +4 -0
  9. package/dist-es/protocols/Aws_restJson1.js +93 -4
  10. package/dist-types/NetworkManager.d.ts +21 -0
  11. package/dist-types/NetworkManagerClient.d.ts +5 -2
  12. package/dist-types/commands/AcceptAttachmentCommand.d.ts +5 -2
  13. package/dist-types/commands/CreateConnectAttachmentCommand.d.ts +5 -2
  14. package/dist-types/commands/CreateDirectConnectGatewayAttachmentCommand.d.ts +155 -0
  15. package/dist-types/commands/CreateSiteToSiteVpnAttachmentCommand.d.ts +5 -2
  16. package/dist-types/commands/CreateTransitGatewayRouteTableAttachmentCommand.d.ts +5 -2
  17. package/dist-types/commands/CreateVpcAttachmentCommand.d.ts +5 -2
  18. package/dist-types/commands/DeleteAttachmentCommand.d.ts +5 -2
  19. package/dist-types/commands/GetConnectAttachmentCommand.d.ts +5 -2
  20. package/dist-types/commands/GetDirectConnectGatewayAttachmentCommand.d.ts +140 -0
  21. package/dist-types/commands/GetSiteToSiteVpnAttachmentCommand.d.ts +5 -2
  22. package/dist-types/commands/GetTransitGatewayRouteTableAttachmentCommand.d.ts +5 -2
  23. package/dist-types/commands/GetVpcAttachmentCommand.d.ts +5 -2
  24. package/dist-types/commands/ListAttachmentsCommand.d.ts +6 -3
  25. package/dist-types/commands/RejectAttachmentCommand.d.ts +5 -2
  26. package/dist-types/commands/UpdateDirectConnectGatewayAttachmentCommand.d.ts +147 -0
  27. package/dist-types/commands/UpdateVpcAttachmentCommand.d.ts +5 -2
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/models/models_0.d.ts +116 -6
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/NetworkManager.d.ts +69 -0
  32. package/dist-types/ts3.4/NetworkManagerClient.d.ts +18 -0
  33. package/dist-types/ts3.4/commands/CreateDirectConnectGatewayAttachmentCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/GetDirectConnectGatewayAttachmentCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/UpdateDirectConnectGatewayAttachmentCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +37 -5
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  39. package/package.json +35 -35
package/README.md CHANGED
@@ -282,6 +282,14 @@ CreateDevice
282
282
 
283
283
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/CreateDeviceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDeviceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDeviceCommandOutput/)
284
284
 
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ CreateDirectConnectGatewayAttachment
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/CreateDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDirectConnectGatewayAttachmentCommandOutput/)
292
+
285
293
  </details>
286
294
  <details>
287
295
  <summary>
@@ -562,6 +570,14 @@ GetDevices
562
570
 
563
571
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/GetDevicesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDevicesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDevicesCommandOutput/)
564
572
 
573
+ </details>
574
+ <details>
575
+ <summary>
576
+ GetDirectConnectGatewayAttachment
577
+ </summary>
578
+
579
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/GetDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDirectConnectGatewayAttachmentCommandOutput/)
580
+
565
581
  </details>
566
582
  <details>
567
583
  <summary>
@@ -842,6 +858,14 @@ UpdateDevice
842
858
 
843
859
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/UpdateDeviceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDeviceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDeviceCommandOutput/)
844
860
 
861
+ </details>
862
+ <details>
863
+ <summary>
864
+ UpdateDirectConnectGatewayAttachment
865
+ </summary>
866
+
867
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/UpdateDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDirectConnectGatewayAttachmentCommandOutput/)
868
+
845
869
  </details>
846
870
  <details>
847
871
  <summary>
package/dist-cjs/index.js CHANGED
@@ -51,6 +51,7 @@ __export(src_exports, {
51
51
  CreateDeviceCommand: () => CreateDeviceCommand,
52
52
  CreateDeviceRequestFilterSensitiveLog: () => CreateDeviceRequestFilterSensitiveLog,
53
53
  CreateDeviceResponseFilterSensitiveLog: () => CreateDeviceResponseFilterSensitiveLog,
54
+ CreateDirectConnectGatewayAttachmentCommand: () => CreateDirectConnectGatewayAttachmentCommand,
54
55
  CreateGlobalNetworkCommand: () => CreateGlobalNetworkCommand,
55
56
  CreateLinkCommand: () => CreateLinkCommand,
56
57
  CreateSiteCommand: () => CreateSiteCommand,
@@ -94,6 +95,7 @@ __export(src_exports, {
94
95
  GetCustomerGatewayAssociationsCommand: () => GetCustomerGatewayAssociationsCommand,
95
96
  GetDevicesCommand: () => GetDevicesCommand,
96
97
  GetDevicesResponseFilterSensitiveLog: () => GetDevicesResponseFilterSensitiveLog,
98
+ GetDirectConnectGatewayAttachmentCommand: () => GetDirectConnectGatewayAttachmentCommand,
97
99
  GetLinkAssociationsCommand: () => GetLinkAssociationsCommand,
98
100
  GetLinksCommand: () => GetLinksCommand,
99
101
  GetNetworkResourceCountsCommand: () => GetNetworkResourceCountsCommand,
@@ -159,6 +161,7 @@ __export(src_exports, {
159
161
  UpdateDeviceCommand: () => UpdateDeviceCommand,
160
162
  UpdateDeviceRequestFilterSensitiveLog: () => UpdateDeviceRequestFilterSensitiveLog,
161
163
  UpdateDeviceResponseFilterSensitiveLog: () => UpdateDeviceResponseFilterSensitiveLog,
164
+ UpdateDirectConnectGatewayAttachmentCommand: () => UpdateDirectConnectGatewayAttachmentCommand,
162
165
  UpdateGlobalNetworkCommand: () => UpdateGlobalNetworkCommand,
163
166
  UpdateLinkCommand: () => UpdateLinkCommand,
164
167
  UpdateNetworkResourceMetadataCommand: () => UpdateNetworkResourceMetadataCommand,
@@ -364,11 +367,15 @@ var NetworkManagerServiceException = _NetworkManagerServiceException;
364
367
  // src/models/models_0.ts
365
368
  var AttachmentType = {
366
369
  CONNECT: "CONNECT",
370
+ DIRECT_CONNECT_GATEWAY: "DIRECT_CONNECT_GATEWAY",
367
371
  SITE_TO_SITE_VPN: "SITE_TO_SITE_VPN",
368
372
  TRANSIT_GATEWAY_ROUTE_TABLE: "TRANSIT_GATEWAY_ROUTE_TABLE",
369
373
  VPC: "VPC"
370
374
  };
371
375
  var AttachmentErrorCode = {
376
+ DIRECT_CONNECT_GATEWAY_EXISTING_ATTACHMENTS: "DIRECT_CONNECT_GATEWAY_EXISTING_ATTACHMENTS",
377
+ DIRECT_CONNECT_GATEWAY_NOT_FOUND: "DIRECT_CONNECT_GATEWAY_NOT_FOUND",
378
+ DIRECT_CONNECT_GATEWAY_NO_PRIVATE_VIF: "DIRECT_CONNECT_GATEWAY_NO_PRIVATE_VIF",
372
379
  MAXIMUM_NO_ENCAP_LIMIT_EXCEEDED: "MAXIMUM_NO_ENCAP_LIMIT_EXCEEDED",
373
380
  SUBNET_DUPLICATED_IN_AVAILABILITY_ZONE: "SUBNET_DUPLICATED_IN_AVAILABILITY_ZONE",
374
381
  SUBNET_NOT_FOUND: "SUBNET_NOT_FOUND",
@@ -988,6 +995,25 @@ var se_CreateDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
988
995
  b.m("POST").h(headers).b(body);
989
996
  return b.build();
990
997
  }, "se_CreateDeviceCommand");
998
+ var se_CreateDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
999
+ const b = (0, import_core.requestBuilder)(input, context);
1000
+ const headers = {
1001
+ "content-type": "application/json"
1002
+ };
1003
+ b.bp("/direct-connect-gateway-attachments");
1004
+ let body;
1005
+ body = JSON.stringify(
1006
+ (0, import_smithy_client.take)(input, {
1007
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1008
+ CoreNetworkId: [],
1009
+ DirectConnectGatewayArn: [],
1010
+ EdgeLocations: (_) => (0, import_smithy_client._json)(_),
1011
+ Tags: (_) => (0, import_smithy_client._json)(_)
1012
+ })
1013
+ );
1014
+ b.m("POST").h(headers).b(body);
1015
+ return b.build();
1016
+ }, "se_CreateDirectConnectGatewayAttachmentCommand");
991
1017
  var se_CreateGlobalNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
992
1018
  const b = (0, import_core.requestBuilder)(input, context);
993
1019
  const headers = {
@@ -1428,6 +1454,15 @@ var se_GetDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
1428
1454
  b.m("GET").h(headers).q(query).b(body);
1429
1455
  return b.build();
1430
1456
  }, "se_GetDevicesCommand");
1457
+ var se_GetDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
1458
+ const b = (0, import_core.requestBuilder)(input, context);
1459
+ const headers = {};
1460
+ b.bp("/direct-connect-gateway-attachments/{AttachmentId}");
1461
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1462
+ let body;
1463
+ b.m("GET").h(headers).b(body);
1464
+ return b.build();
1465
+ }, "se_GetDirectConnectGatewayAttachmentCommand");
1431
1466
  var se_GetLinkAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1432
1467
  const b = (0, import_core.requestBuilder)(input, context);
1433
1468
  const headers = {};
@@ -1757,7 +1792,7 @@ var se_PutCoreNetworkPolicyCommand = /* @__PURE__ */ __name(async (input, contex
1757
1792
  ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1758
1793
  Description: [],
1759
1794
  LatestVersionId: [],
1760
- PolicyDocument: (_) => import_smithy_client.LazyJsonString.fromObject(_)
1795
+ PolicyDocument: (_) => import_smithy_client.LazyJsonString.from(_)
1761
1796
  })
1762
1797
  );
1763
1798
  b.m("POST").h(headers).b(body);
@@ -1773,7 +1808,7 @@ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context)
1773
1808
  let body;
1774
1809
  body = JSON.stringify(
1775
1810
  (0, import_smithy_client.take)(input, {
1776
- PolicyDocument: (_) => import_smithy_client.LazyJsonString.fromObject(_)
1811
+ PolicyDocument: (_) => import_smithy_client.LazyJsonString.from(_)
1777
1812
  })
1778
1813
  );
1779
1814
  b.m("POST").h(headers).b(body);
@@ -1935,6 +1970,22 @@ var se_UpdateDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
1935
1970
  b.m("PATCH").h(headers).b(body);
1936
1971
  return b.build();
1937
1972
  }, "se_UpdateDeviceCommand");
1973
+ var se_UpdateDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
1974
+ const b = (0, import_core.requestBuilder)(input, context);
1975
+ const headers = {
1976
+ "content-type": "application/json"
1977
+ };
1978
+ b.bp("/direct-connect-gateway-attachments/{AttachmentId}");
1979
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1980
+ let body;
1981
+ body = JSON.stringify(
1982
+ (0, import_smithy_client.take)(input, {
1983
+ EdgeLocations: (_) => (0, import_smithy_client._json)(_)
1984
+ })
1985
+ );
1986
+ b.m("PATCH").h(headers).b(body);
1987
+ return b.build();
1988
+ }, "se_UpdateDirectConnectGatewayAttachmentCommand");
1938
1989
  var se_UpdateGlobalNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
1939
1990
  const b = (0, import_core.requestBuilder)(input, context);
1940
1991
  const headers = {
@@ -2164,6 +2215,20 @@ var de_CreateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
2164
2215
  Object.assign(contents, doc);
2165
2216
  return contents;
2166
2217
  }, "de_CreateDeviceCommand");
2218
+ var de_CreateDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2219
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2220
+ return de_CommandError(output, context);
2221
+ }
2222
+ const contents = (0, import_smithy_client.map)({
2223
+ $metadata: deserializeMetadata(output)
2224
+ });
2225
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2226
+ const doc = (0, import_smithy_client.take)(data, {
2227
+ DirectConnectGatewayAttachment: (_) => de_DirectConnectGatewayAttachment(_, context)
2228
+ });
2229
+ Object.assign(contents, doc);
2230
+ return contents;
2231
+ }, "de_CreateDirectConnectGatewayAttachmentCommand");
2167
2232
  var de_CreateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
2168
2233
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2169
2234
  return de_CommandError(output, context);
@@ -2653,6 +2718,20 @@ var de_GetDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
2653
2718
  Object.assign(contents, doc);
2654
2719
  return contents;
2655
2720
  }, "de_GetDevicesCommand");
2721
+ var de_GetDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2722
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2723
+ return de_CommandError(output, context);
2724
+ }
2725
+ const contents = (0, import_smithy_client.map)({
2726
+ $metadata: deserializeMetadata(output)
2727
+ });
2728
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2729
+ const doc = (0, import_smithy_client.take)(data, {
2730
+ DirectConnectGatewayAttachment: (_) => de_DirectConnectGatewayAttachment(_, context)
2731
+ });
2732
+ Object.assign(contents, doc);
2733
+ return contents;
2734
+ }, "de_GetDirectConnectGatewayAttachmentCommand");
2656
2735
  var de_GetLinkAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2657
2736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2658
2737
  return de_CommandError(output, context);
@@ -2770,7 +2849,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
2770
2849
  });
2771
2850
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2772
2851
  const doc = (0, import_smithy_client.take)(data, {
2773
- PolicyDocument: (_) => new import_smithy_client.LazyJsonString(_)
2852
+ PolicyDocument: import_smithy_client.LazyJsonString.from
2774
2853
  });
2775
2854
  Object.assign(contents, doc);
2776
2855
  return contents;
@@ -3150,6 +3229,20 @@ var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
3150
3229
  Object.assign(contents, doc);
3151
3230
  return contents;
3152
3231
  }, "de_UpdateDeviceCommand");
3232
+ var de_UpdateDirectConnectGatewayAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
3233
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3234
+ return de_CommandError(output, context);
3235
+ }
3236
+ const contents = (0, import_smithy_client.map)({
3237
+ $metadata: deserializeMetadata(output)
3238
+ });
3239
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3240
+ const doc = (0, import_smithy_client.take)(data, {
3241
+ DirectConnectGatewayAttachment: (_) => de_DirectConnectGatewayAttachment(_, context)
3242
+ });
3243
+ Object.assign(contents, doc);
3244
+ return contents;
3245
+ }, "de_UpdateDirectConnectGatewayAttachmentCommand");
3153
3246
  var de_UpdateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
3154
3247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3155
3248
  return de_CommandError(output, context);
@@ -3391,6 +3484,7 @@ var de_Attachment = /* @__PURE__ */ __name((output, context) => {
3391
3484
  CoreNetworkId: import_smithy_client.expectString,
3392
3485
  CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3393
3486
  EdgeLocation: import_smithy_client.expectString,
3487
+ EdgeLocations: import_smithy_client._json,
3394
3488
  LastModificationErrors: import_smithy_client._json,
3395
3489
  NetworkFunctionGroupName: import_smithy_client.expectString,
3396
3490
  OwnerAccountId: import_smithy_client.expectString,
@@ -3513,7 +3607,7 @@ var de_CoreNetworkPolicy = /* @__PURE__ */ __name((output, context) => {
3513
3607
  CoreNetworkId: import_smithy_client.expectString,
3514
3608
  CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3515
3609
  Description: import_smithy_client.expectString,
3516
- PolicyDocument: (_) => new import_smithy_client.LazyJsonString(_),
3610
+ PolicyDocument: import_smithy_client.LazyJsonString.from,
3517
3611
  PolicyErrors: import_smithy_client._json,
3518
3612
  PolicyVersionId: import_smithy_client.expectInt32
3519
3613
  });
@@ -3558,6 +3652,12 @@ var de_DeviceList = /* @__PURE__ */ __name((output, context) => {
3558
3652
  });
3559
3653
  return retVal;
3560
3654
  }, "de_DeviceList");
3655
+ var de_DirectConnectGatewayAttachment = /* @__PURE__ */ __name((output, context) => {
3656
+ return (0, import_smithy_client.take)(output, {
3657
+ Attachment: (_) => de_Attachment(_, context),
3658
+ DirectConnectGatewayArn: import_smithy_client.expectString
3659
+ });
3660
+ }, "de_DirectConnectGatewayAttachment");
3561
3661
  var de_GlobalNetwork = /* @__PURE__ */ __name((output, context) => {
3562
3662
  return (0, import_smithy_client.take)(output, {
3563
3663
  CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -3922,6 +4022,20 @@ var _CreateDeviceCommand = class _CreateDeviceCommand extends import_smithy_clie
3922
4022
  __name(_CreateDeviceCommand, "CreateDeviceCommand");
3923
4023
  var CreateDeviceCommand = _CreateDeviceCommand;
3924
4024
 
4025
+ // src/commands/CreateDirectConnectGatewayAttachmentCommand.ts
4026
+
4027
+
4028
+
4029
+ var _CreateDirectConnectGatewayAttachmentCommand = class _CreateDirectConnectGatewayAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4030
+ return [
4031
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4032
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4033
+ ];
4034
+ }).s("NetworkManager", "CreateDirectConnectGatewayAttachment", {}).n("NetworkManagerClient", "CreateDirectConnectGatewayAttachmentCommand").f(void 0, void 0).ser(se_CreateDirectConnectGatewayAttachmentCommand).de(de_CreateDirectConnectGatewayAttachmentCommand).build() {
4035
+ };
4036
+ __name(_CreateDirectConnectGatewayAttachmentCommand, "CreateDirectConnectGatewayAttachmentCommand");
4037
+ var CreateDirectConnectGatewayAttachmentCommand = _CreateDirectConnectGatewayAttachmentCommand;
4038
+
3925
4039
  // src/commands/CreateGlobalNetworkCommand.ts
3926
4040
 
3927
4041
 
@@ -4412,6 +4526,20 @@ var _GetDevicesCommand = class _GetDevicesCommand extends import_smithy_client.C
4412
4526
  __name(_GetDevicesCommand, "GetDevicesCommand");
4413
4527
  var GetDevicesCommand = _GetDevicesCommand;
4414
4528
 
4529
+ // src/commands/GetDirectConnectGatewayAttachmentCommand.ts
4530
+
4531
+
4532
+
4533
+ var _GetDirectConnectGatewayAttachmentCommand = class _GetDirectConnectGatewayAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4534
+ return [
4535
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4536
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4537
+ ];
4538
+ }).s("NetworkManager", "GetDirectConnectGatewayAttachment", {}).n("NetworkManagerClient", "GetDirectConnectGatewayAttachmentCommand").f(void 0, void 0).ser(se_GetDirectConnectGatewayAttachmentCommand).de(de_GetDirectConnectGatewayAttachmentCommand).build() {
4539
+ };
4540
+ __name(_GetDirectConnectGatewayAttachmentCommand, "GetDirectConnectGatewayAttachmentCommand");
4541
+ var GetDirectConnectGatewayAttachmentCommand = _GetDirectConnectGatewayAttachmentCommand;
4542
+
4415
4543
  // src/commands/GetLinkAssociationsCommand.ts
4416
4544
 
4417
4545
 
@@ -4902,6 +5030,20 @@ var _UpdateDeviceCommand = class _UpdateDeviceCommand extends import_smithy_clie
4902
5030
  __name(_UpdateDeviceCommand, "UpdateDeviceCommand");
4903
5031
  var UpdateDeviceCommand = _UpdateDeviceCommand;
4904
5032
 
5033
+ // src/commands/UpdateDirectConnectGatewayAttachmentCommand.ts
5034
+
5035
+
5036
+
5037
+ var _UpdateDirectConnectGatewayAttachmentCommand = class _UpdateDirectConnectGatewayAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5038
+ return [
5039
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5040
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5041
+ ];
5042
+ }).s("NetworkManager", "UpdateDirectConnectGatewayAttachment", {}).n("NetworkManagerClient", "UpdateDirectConnectGatewayAttachmentCommand").f(void 0, void 0).ser(se_UpdateDirectConnectGatewayAttachmentCommand).de(de_UpdateDirectConnectGatewayAttachmentCommand).build() {
5043
+ };
5044
+ __name(_UpdateDirectConnectGatewayAttachmentCommand, "UpdateDirectConnectGatewayAttachmentCommand");
5045
+ var UpdateDirectConnectGatewayAttachmentCommand = _UpdateDirectConnectGatewayAttachmentCommand;
5046
+
4905
5047
  // src/commands/UpdateGlobalNetworkCommand.ts
4906
5048
 
4907
5049
 
@@ -4984,6 +5126,7 @@ var commands = {
4984
5126
  CreateConnectPeerCommand,
4985
5127
  CreateCoreNetworkCommand,
4986
5128
  CreateDeviceCommand,
5129
+ CreateDirectConnectGatewayAttachmentCommand,
4987
5130
  CreateGlobalNetworkCommand,
4988
5131
  CreateLinkCommand,
4989
5132
  CreateSiteCommand,
@@ -5019,6 +5162,7 @@ var commands = {
5019
5162
  GetCoreNetworkPolicyCommand,
5020
5163
  GetCustomerGatewayAssociationsCommand,
5021
5164
  GetDevicesCommand,
5165
+ GetDirectConnectGatewayAttachmentCommand,
5022
5166
  GetLinkAssociationsCommand,
5023
5167
  GetLinksCommand,
5024
5168
  GetNetworkResourceCountsCommand,
@@ -5054,6 +5198,7 @@ var commands = {
5054
5198
  UpdateConnectionCommand,
5055
5199
  UpdateCoreNetworkCommand,
5056
5200
  UpdateDeviceCommand,
5201
+ UpdateDirectConnectGatewayAttachmentCommand,
5057
5202
  UpdateGlobalNetworkCommand,
5058
5203
  UpdateLinkCommand,
5059
5204
  UpdateNetworkResourceMetadataCommand,
@@ -5167,6 +5312,7 @@ var paginateListPeerings = (0, import_core.createPaginator)(NetworkManagerClient
5167
5312
  CreateConnectionCommand,
5168
5313
  CreateCoreNetworkCommand,
5169
5314
  CreateDeviceCommand,
5315
+ CreateDirectConnectGatewayAttachmentCommand,
5170
5316
  CreateGlobalNetworkCommand,
5171
5317
  CreateLinkCommand,
5172
5318
  CreateSiteCommand,
@@ -5202,6 +5348,7 @@ var paginateListPeerings = (0, import_core.createPaginator)(NetworkManagerClient
5202
5348
  GetCoreNetworkPolicyCommand,
5203
5349
  GetCustomerGatewayAssociationsCommand,
5204
5350
  GetDevicesCommand,
5351
+ GetDirectConnectGatewayAttachmentCommand,
5205
5352
  GetLinkAssociationsCommand,
5206
5353
  GetLinksCommand,
5207
5354
  GetNetworkResourceCountsCommand,
@@ -5237,6 +5384,7 @@ var paginateListPeerings = (0, import_core.createPaginator)(NetworkManagerClient
5237
5384
  UpdateConnectionCommand,
5238
5385
  UpdateCoreNetworkCommand,
5239
5386
  UpdateDeviceCommand,
5387
+ UpdateDirectConnectGatewayAttachmentCommand,
5240
5388
  UpdateGlobalNetworkCommand,
5241
5389
  UpdateLinkCommand,
5242
5390
  UpdateNetworkResourceMetadataCommand,
@@ -9,6 +9,7 @@ import { CreateConnectionCommand, } from "./commands/CreateConnectionCommand";
9
9
  import { CreateConnectPeerCommand, } from "./commands/CreateConnectPeerCommand";
10
10
  import { CreateCoreNetworkCommand, } from "./commands/CreateCoreNetworkCommand";
11
11
  import { CreateDeviceCommand, } from "./commands/CreateDeviceCommand";
12
+ import { CreateDirectConnectGatewayAttachmentCommand, } from "./commands/CreateDirectConnectGatewayAttachmentCommand";
12
13
  import { CreateGlobalNetworkCommand, } from "./commands/CreateGlobalNetworkCommand";
13
14
  import { CreateLinkCommand } from "./commands/CreateLinkCommand";
14
15
  import { CreateSiteCommand } from "./commands/CreateSiteCommand";
@@ -44,6 +45,7 @@ import { GetCoreNetworkCommand, } from "./commands/GetCoreNetworkCommand";
44
45
  import { GetCoreNetworkPolicyCommand, } from "./commands/GetCoreNetworkPolicyCommand";
45
46
  import { GetCustomerGatewayAssociationsCommand, } from "./commands/GetCustomerGatewayAssociationsCommand";
46
47
  import { GetDevicesCommand } from "./commands/GetDevicesCommand";
48
+ import { GetDirectConnectGatewayAttachmentCommand, } from "./commands/GetDirectConnectGatewayAttachmentCommand";
47
49
  import { GetLinkAssociationsCommand, } from "./commands/GetLinkAssociationsCommand";
48
50
  import { GetLinksCommand } from "./commands/GetLinksCommand";
49
51
  import { GetNetworkResourceCountsCommand, } from "./commands/GetNetworkResourceCountsCommand";
@@ -79,6 +81,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
79
81
  import { UpdateConnectionCommand, } from "./commands/UpdateConnectionCommand";
80
82
  import { UpdateCoreNetworkCommand, } from "./commands/UpdateCoreNetworkCommand";
81
83
  import { UpdateDeviceCommand, } from "./commands/UpdateDeviceCommand";
84
+ import { UpdateDirectConnectGatewayAttachmentCommand, } from "./commands/UpdateDirectConnectGatewayAttachmentCommand";
82
85
  import { UpdateGlobalNetworkCommand, } from "./commands/UpdateGlobalNetworkCommand";
83
86
  import { UpdateLinkCommand } from "./commands/UpdateLinkCommand";
84
87
  import { UpdateNetworkResourceMetadataCommand, } from "./commands/UpdateNetworkResourceMetadataCommand";
@@ -96,6 +99,7 @@ const commands = {
96
99
  CreateConnectPeerCommand,
97
100
  CreateCoreNetworkCommand,
98
101
  CreateDeviceCommand,
102
+ CreateDirectConnectGatewayAttachmentCommand,
99
103
  CreateGlobalNetworkCommand,
100
104
  CreateLinkCommand,
101
105
  CreateSiteCommand,
@@ -131,6 +135,7 @@ const commands = {
131
135
  GetCoreNetworkPolicyCommand,
132
136
  GetCustomerGatewayAssociationsCommand,
133
137
  GetDevicesCommand,
138
+ GetDirectConnectGatewayAttachmentCommand,
134
139
  GetLinkAssociationsCommand,
135
140
  GetLinksCommand,
136
141
  GetNetworkResourceCountsCommand,
@@ -166,6 +171,7 @@ const commands = {
166
171
  UpdateConnectionCommand,
167
172
  UpdateCoreNetworkCommand,
168
173
  UpdateDeviceCommand,
174
+ UpdateDirectConnectGatewayAttachmentCommand,
169
175
  UpdateGlobalNetworkCommand,
170
176
  UpdateLinkCommand,
171
177
  UpdateNetworkResourceMetadataCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateDirectConnectGatewayAttachmentCommand, se_CreateDirectConnectGatewayAttachmentCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateDirectConnectGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkManager", "CreateDirectConnectGatewayAttachment", {})
17
+ .n("NetworkManagerClient", "CreateDirectConnectGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateDirectConnectGatewayAttachmentCommand)
20
+ .de(de_CreateDirectConnectGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetDirectConnectGatewayAttachmentCommand, se_GetDirectConnectGatewayAttachmentCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetDirectConnectGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkManager", "GetDirectConnectGatewayAttachment", {})
17
+ .n("NetworkManagerClient", "GetDirectConnectGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetDirectConnectGatewayAttachmentCommand)
20
+ .de(de_GetDirectConnectGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateDirectConnectGatewayAttachmentCommand, se_UpdateDirectConnectGatewayAttachmentCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateDirectConnectGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkManager", "UpdateDirectConnectGatewayAttachment", {})
17
+ .n("NetworkManagerClient", "UpdateDirectConnectGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateDirectConnectGatewayAttachmentCommand)
20
+ .de(de_UpdateDirectConnectGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -8,6 +8,7 @@ export * from "./CreateConnectPeerCommand";
8
8
  export * from "./CreateConnectionCommand";
9
9
  export * from "./CreateCoreNetworkCommand";
10
10
  export * from "./CreateDeviceCommand";
11
+ export * from "./CreateDirectConnectGatewayAttachmentCommand";
11
12
  export * from "./CreateGlobalNetworkCommand";
12
13
  export * from "./CreateLinkCommand";
13
14
  export * from "./CreateSiteCommand";
@@ -43,6 +44,7 @@ export * from "./GetCoreNetworkCommand";
43
44
  export * from "./GetCoreNetworkPolicyCommand";
44
45
  export * from "./GetCustomerGatewayAssociationsCommand";
45
46
  export * from "./GetDevicesCommand";
47
+ export * from "./GetDirectConnectGatewayAttachmentCommand";
46
48
  export * from "./GetLinkAssociationsCommand";
47
49
  export * from "./GetLinksCommand";
48
50
  export * from "./GetNetworkResourceCountsCommand";
@@ -78,6 +80,7 @@ export * from "./UntagResourceCommand";
78
80
  export * from "./UpdateConnectionCommand";
79
81
  export * from "./UpdateCoreNetworkCommand";
80
82
  export * from "./UpdateDeviceCommand";
83
+ export * from "./UpdateDirectConnectGatewayAttachmentCommand";
81
84
  export * from "./UpdateGlobalNetworkCommand";
82
85
  export * from "./UpdateLinkCommand";
83
86
  export * from "./UpdateNetworkResourceMetadataCommand";
@@ -2,11 +2,15 @@ import { SENSITIVE_STRING, } from "@smithy/smithy-client";
2
2
  import { NetworkManagerServiceException as __BaseException } from "./NetworkManagerServiceException";
3
3
  export const AttachmentType = {
4
4
  CONNECT: "CONNECT",
5
+ DIRECT_CONNECT_GATEWAY: "DIRECT_CONNECT_GATEWAY",
5
6
  SITE_TO_SITE_VPN: "SITE_TO_SITE_VPN",
6
7
  TRANSIT_GATEWAY_ROUTE_TABLE: "TRANSIT_GATEWAY_ROUTE_TABLE",
7
8
  VPC: "VPC",
8
9
  };
9
10
  export const AttachmentErrorCode = {
11
+ DIRECT_CONNECT_GATEWAY_EXISTING_ATTACHMENTS: "DIRECT_CONNECT_GATEWAY_EXISTING_ATTACHMENTS",
12
+ DIRECT_CONNECT_GATEWAY_NOT_FOUND: "DIRECT_CONNECT_GATEWAY_NOT_FOUND",
13
+ DIRECT_CONNECT_GATEWAY_NO_PRIVATE_VIF: "DIRECT_CONNECT_GATEWAY_NO_PRIVATE_VIF",
10
14
  MAXIMUM_NO_ENCAP_LIMIT_EXCEEDED: "MAXIMUM_NO_ENCAP_LIMIT_EXCEEDED",
11
15
  SUBNET_DUPLICATED_IN_AVAILABILITY_ZONE: "SUBNET_DUPLICATED_IN_AVAILABILITY_ZONE",
12
16
  SUBNET_NOT_FOUND: "SUBNET_NOT_FOUND",