@aws-sdk/client-global-accelerator 3.438.0 → 3.445.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 (66) hide show
  1. package/README.md +57 -1
  2. package/dist-cjs/GlobalAccelerator.js +14 -0
  3. package/dist-cjs/commands/CreateCrossAccountAttachmentCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteCrossAccountAttachmentCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeCrossAccountAttachmentCommand.js +51 -0
  6. package/dist-cjs/commands/ListCrossAccountAttachmentsCommand.js +51 -0
  7. package/dist-cjs/commands/ListCrossAccountResourceAccountsCommand.js +51 -0
  8. package/dist-cjs/commands/ListCrossAccountResourcesCommand.js +51 -0
  9. package/dist-cjs/commands/UpdateCrossAccountAttachmentCommand.js +51 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +15 -1
  12. package/dist-cjs/pagination/ListCrossAccountAttachmentsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListCrossAccountResourcesPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +2 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +409 -2
  16. package/dist-es/GlobalAccelerator.js +14 -0
  17. package/dist-es/commands/CreateCrossAccountAttachmentCommand.js +47 -0
  18. package/dist-es/commands/DeleteCrossAccountAttachmentCommand.js +47 -0
  19. package/dist-es/commands/DescribeCrossAccountAttachmentCommand.js +47 -0
  20. package/dist-es/commands/ListCrossAccountAttachmentsCommand.js +47 -0
  21. package/dist-es/commands/ListCrossAccountResourceAccountsCommand.js +47 -0
  22. package/dist-es/commands/ListCrossAccountResourcesCommand.js +47 -0
  23. package/dist-es/commands/UpdateCrossAccountAttachmentCommand.js +47 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/models/models_0.js +13 -0
  26. package/dist-es/pagination/ListCrossAccountAttachmentsPaginator.js +25 -0
  27. package/dist-es/pagination/ListCrossAccountResourcesPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +2 -0
  29. package/dist-es/protocols/Aws_json1_1.js +393 -1
  30. package/dist-types/GlobalAccelerator.d.ts +50 -1
  31. package/dist-types/GlobalAcceleratorClient.d.ts +10 -3
  32. package/dist-types/commands/AddCustomRoutingEndpointsCommand.d.ts +1 -0
  33. package/dist-types/commands/AddEndpointsCommand.d.ts +1 -0
  34. package/dist-types/commands/CreateCrossAccountAttachmentCommand.d.ts +126 -0
  35. package/dist-types/commands/CreateEndpointGroupCommand.d.ts +1 -0
  36. package/dist-types/commands/DeleteCrossAccountAttachmentCommand.d.ts +103 -0
  37. package/dist-types/commands/DescribeCrossAccountAttachmentCommand.d.ts +99 -0
  38. package/dist-types/commands/ListCrossAccountAttachmentsCommand.d.ts +103 -0
  39. package/dist-types/commands/ListCrossAccountResourceAccountsCommand.d.ts +79 -0
  40. package/dist-types/commands/ListCrossAccountResourcesCommand.d.ts +97 -0
  41. package/dist-types/commands/UpdateCrossAccountAttachmentCommand.d.ts +141 -0
  42. package/dist-types/commands/UpdateEndpointGroupCommand.d.ts +1 -0
  43. package/dist-types/commands/index.d.ts +7 -0
  44. package/dist-types/index.d.ts +3 -1
  45. package/dist-types/models/models_0.d.ts +316 -4
  46. package/dist-types/pagination/ListCrossAccountAttachmentsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/ListCrossAccountResourcesPaginator.d.ts +7 -0
  48. package/dist-types/pagination/index.d.ts +2 -0
  49. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  50. package/dist-types/ts3.4/GlobalAccelerator.d.ts +119 -0
  51. package/dist-types/ts3.4/GlobalAcceleratorClient.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/CreateCrossAccountAttachmentCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/DeleteCrossAccountAttachmentCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/DescribeCrossAccountAttachmentCommand.d.ts +42 -0
  55. package/dist-types/ts3.4/commands/ListCrossAccountAttachmentsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/ListCrossAccountResourceAccountsCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/ListCrossAccountResourcesCommand.d.ts +42 -0
  58. package/dist-types/ts3.4/commands/UpdateCrossAccountAttachmentCommand.d.ts +42 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  60. package/dist-types/ts3.4/index.d.ts +2 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  62. package/dist-types/ts3.4/pagination/ListCrossAccountAttachmentsPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListCrossAccountResourcesPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  65. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  66. package/package.json +4 -4
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListCrossAccountAttachments = void 0;
4
+ const ListCrossAccountAttachmentsCommand_1 = require("../commands/ListCrossAccountAttachmentsCommand");
5
+ const GlobalAcceleratorClient_1 = require("../GlobalAcceleratorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListCrossAccountAttachmentsCommand_1.ListCrossAccountAttachmentsCommand(input), ...args);
8
+ };
9
+ async function* paginateListCrossAccountAttachments(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof GlobalAcceleratorClient_1.GlobalAcceleratorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected GlobalAccelerator | GlobalAcceleratorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListCrossAccountAttachments = paginateListCrossAccountAttachments;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListCrossAccountResources = void 0;
4
+ const ListCrossAccountResourcesCommand_1 = require("../commands/ListCrossAccountResourcesCommand");
5
+ const GlobalAcceleratorClient_1 = require("../GlobalAcceleratorClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListCrossAccountResourcesCommand_1.ListCrossAccountResourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateListCrossAccountResources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof GlobalAcceleratorClient_1.GlobalAcceleratorClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected GlobalAccelerator | GlobalAcceleratorClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListCrossAccountResources = paginateListCrossAccountResources;
@@ -4,6 +4,8 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListAcceleratorsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListByoipCidrsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListCrossAccountAttachmentsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListCrossAccountResourcesPaginator"), exports);
7
9
  tslib_1.__exportStar(require("./ListCustomRoutingAcceleratorsPaginator"), exports);
8
10
  tslib_1.__exportStar(require("./ListCustomRoutingEndpointGroupsPaginator"), exports);
9
11
  tslib_1.__exportStar(require("./ListCustomRoutingListenersPaginator"), exports);
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_AddCustomRoutingEndpointsCommand = exports.se_WithdrawByoipCidrCommand = exports.se_UpdateListenerCommand = exports.se_UpdateEndpointGroupCommand = exports.se_UpdateCustomRoutingListenerCommand = exports.se_UpdateCustomRoutingAcceleratorAttributesCommand = exports.se_UpdateCustomRoutingAcceleratorCommand = exports.se_UpdateAcceleratorAttributesCommand = exports.se_UpdateAcceleratorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveEndpointsCommand = exports.se_RemoveCustomRoutingEndpointsCommand = exports.se_ProvisionByoipCidrCommand = exports.se_ListTagsForResourceCommand = exports.se_ListListenersCommand = exports.se_ListEndpointGroupsCommand = exports.se_ListCustomRoutingPortMappingsByDestinationCommand = exports.se_ListCustomRoutingPortMappingsCommand = exports.se_ListCustomRoutingListenersCommand = exports.se_ListCustomRoutingEndpointGroupsCommand = exports.se_ListCustomRoutingAcceleratorsCommand = exports.se_ListByoipCidrsCommand = exports.se_ListAcceleratorsCommand = exports.se_DescribeListenerCommand = exports.se_DescribeEndpointGroupCommand = exports.se_DescribeCustomRoutingListenerCommand = exports.se_DescribeCustomRoutingEndpointGroupCommand = exports.se_DescribeCustomRoutingAcceleratorAttributesCommand = exports.se_DescribeCustomRoutingAcceleratorCommand = exports.se_DescribeAcceleratorAttributesCommand = exports.se_DescribeAcceleratorCommand = exports.se_DeprovisionByoipCidrCommand = exports.se_DenyCustomRoutingTrafficCommand = exports.se_DeleteListenerCommand = exports.se_DeleteEndpointGroupCommand = exports.se_DeleteCustomRoutingListenerCommand = exports.se_DeleteCustomRoutingEndpointGroupCommand = exports.se_DeleteCustomRoutingAcceleratorCommand = exports.se_DeleteAcceleratorCommand = exports.se_CreateListenerCommand = exports.se_CreateEndpointGroupCommand = exports.se_CreateCustomRoutingListenerCommand = exports.se_CreateCustomRoutingEndpointGroupCommand = exports.se_CreateCustomRoutingAcceleratorCommand = exports.se_CreateAcceleratorCommand = exports.se_AllowCustomRoutingTrafficCommand = exports.se_AdvertiseByoipCidrCommand = exports.se_AddEndpointsCommand = exports.se_AddCustomRoutingEndpointsCommand = void 0;
4
- exports.de_WithdrawByoipCidrCommand = exports.de_UpdateListenerCommand = exports.de_UpdateEndpointGroupCommand = exports.de_UpdateCustomRoutingListenerCommand = exports.de_UpdateCustomRoutingAcceleratorAttributesCommand = exports.de_UpdateCustomRoutingAcceleratorCommand = exports.de_UpdateAcceleratorAttributesCommand = exports.de_UpdateAcceleratorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveEndpointsCommand = exports.de_RemoveCustomRoutingEndpointsCommand = exports.de_ProvisionByoipCidrCommand = exports.de_ListTagsForResourceCommand = exports.de_ListListenersCommand = exports.de_ListEndpointGroupsCommand = exports.de_ListCustomRoutingPortMappingsByDestinationCommand = exports.de_ListCustomRoutingPortMappingsCommand = exports.de_ListCustomRoutingListenersCommand = exports.de_ListCustomRoutingEndpointGroupsCommand = exports.de_ListCustomRoutingAcceleratorsCommand = exports.de_ListByoipCidrsCommand = exports.de_ListAcceleratorsCommand = exports.de_DescribeListenerCommand = exports.de_DescribeEndpointGroupCommand = exports.de_DescribeCustomRoutingListenerCommand = exports.de_DescribeCustomRoutingEndpointGroupCommand = exports.de_DescribeCustomRoutingAcceleratorAttributesCommand = exports.de_DescribeCustomRoutingAcceleratorCommand = exports.de_DescribeAcceleratorAttributesCommand = exports.de_DescribeAcceleratorCommand = exports.de_DeprovisionByoipCidrCommand = exports.de_DenyCustomRoutingTrafficCommand = exports.de_DeleteListenerCommand = exports.de_DeleteEndpointGroupCommand = exports.de_DeleteCustomRoutingListenerCommand = exports.de_DeleteCustomRoutingEndpointGroupCommand = exports.de_DeleteCustomRoutingAcceleratorCommand = exports.de_DeleteAcceleratorCommand = exports.de_CreateListenerCommand = exports.de_CreateEndpointGroupCommand = exports.de_CreateCustomRoutingListenerCommand = exports.de_CreateCustomRoutingEndpointGroupCommand = exports.de_CreateCustomRoutingAcceleratorCommand = exports.de_CreateAcceleratorCommand = exports.de_AllowCustomRoutingTrafficCommand = exports.de_AdvertiseByoipCidrCommand = exports.de_AddEndpointsCommand = void 0;
3
+ exports.se_UpdateCrossAccountAttachmentCommand = exports.se_UpdateAcceleratorAttributesCommand = exports.se_UpdateAcceleratorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveEndpointsCommand = exports.se_RemoveCustomRoutingEndpointsCommand = exports.se_ProvisionByoipCidrCommand = exports.se_ListTagsForResourceCommand = exports.se_ListListenersCommand = exports.se_ListEndpointGroupsCommand = exports.se_ListCustomRoutingPortMappingsByDestinationCommand = exports.se_ListCustomRoutingPortMappingsCommand = exports.se_ListCustomRoutingListenersCommand = exports.se_ListCustomRoutingEndpointGroupsCommand = exports.se_ListCustomRoutingAcceleratorsCommand = exports.se_ListCrossAccountResourcesCommand = exports.se_ListCrossAccountResourceAccountsCommand = exports.se_ListCrossAccountAttachmentsCommand = exports.se_ListByoipCidrsCommand = exports.se_ListAcceleratorsCommand = exports.se_DescribeListenerCommand = exports.se_DescribeEndpointGroupCommand = exports.se_DescribeCustomRoutingListenerCommand = exports.se_DescribeCustomRoutingEndpointGroupCommand = exports.se_DescribeCustomRoutingAcceleratorAttributesCommand = exports.se_DescribeCustomRoutingAcceleratorCommand = exports.se_DescribeCrossAccountAttachmentCommand = exports.se_DescribeAcceleratorAttributesCommand = exports.se_DescribeAcceleratorCommand = exports.se_DeprovisionByoipCidrCommand = exports.se_DenyCustomRoutingTrafficCommand = exports.se_DeleteListenerCommand = exports.se_DeleteEndpointGroupCommand = exports.se_DeleteCustomRoutingListenerCommand = exports.se_DeleteCustomRoutingEndpointGroupCommand = exports.se_DeleteCustomRoutingAcceleratorCommand = exports.se_DeleteCrossAccountAttachmentCommand = exports.se_DeleteAcceleratorCommand = exports.se_CreateListenerCommand = exports.se_CreateEndpointGroupCommand = exports.se_CreateCustomRoutingListenerCommand = exports.se_CreateCustomRoutingEndpointGroupCommand = exports.se_CreateCustomRoutingAcceleratorCommand = exports.se_CreateCrossAccountAttachmentCommand = exports.se_CreateAcceleratorCommand = exports.se_AllowCustomRoutingTrafficCommand = exports.se_AdvertiseByoipCidrCommand = exports.se_AddEndpointsCommand = exports.se_AddCustomRoutingEndpointsCommand = void 0;
4
+ exports.de_RemoveCustomRoutingEndpointsCommand = exports.de_ProvisionByoipCidrCommand = exports.de_ListTagsForResourceCommand = exports.de_ListListenersCommand = exports.de_ListEndpointGroupsCommand = exports.de_ListCustomRoutingPortMappingsByDestinationCommand = exports.de_ListCustomRoutingPortMappingsCommand = exports.de_ListCustomRoutingListenersCommand = exports.de_ListCustomRoutingEndpointGroupsCommand = exports.de_ListCustomRoutingAcceleratorsCommand = exports.de_ListCrossAccountResourcesCommand = exports.de_ListCrossAccountResourceAccountsCommand = exports.de_ListCrossAccountAttachmentsCommand = exports.de_ListByoipCidrsCommand = exports.de_ListAcceleratorsCommand = exports.de_DescribeListenerCommand = exports.de_DescribeEndpointGroupCommand = exports.de_DescribeCustomRoutingListenerCommand = exports.de_DescribeCustomRoutingEndpointGroupCommand = exports.de_DescribeCustomRoutingAcceleratorAttributesCommand = exports.de_DescribeCustomRoutingAcceleratorCommand = exports.de_DescribeCrossAccountAttachmentCommand = exports.de_DescribeAcceleratorAttributesCommand = exports.de_DescribeAcceleratorCommand = exports.de_DeprovisionByoipCidrCommand = exports.de_DenyCustomRoutingTrafficCommand = exports.de_DeleteListenerCommand = exports.de_DeleteEndpointGroupCommand = exports.de_DeleteCustomRoutingListenerCommand = exports.de_DeleteCustomRoutingEndpointGroupCommand = exports.de_DeleteCustomRoutingAcceleratorCommand = exports.de_DeleteCrossAccountAttachmentCommand = exports.de_DeleteAcceleratorCommand = exports.de_CreateListenerCommand = exports.de_CreateEndpointGroupCommand = exports.de_CreateCustomRoutingListenerCommand = exports.de_CreateCustomRoutingEndpointGroupCommand = exports.de_CreateCustomRoutingAcceleratorCommand = exports.de_CreateCrossAccountAttachmentCommand = exports.de_CreateAcceleratorCommand = exports.de_AllowCustomRoutingTrafficCommand = exports.de_AdvertiseByoipCidrCommand = exports.de_AddEndpointsCommand = exports.de_AddCustomRoutingEndpointsCommand = exports.se_WithdrawByoipCidrCommand = exports.se_UpdateListenerCommand = exports.se_UpdateEndpointGroupCommand = exports.se_UpdateCustomRoutingListenerCommand = exports.se_UpdateCustomRoutingAcceleratorAttributesCommand = exports.se_UpdateCustomRoutingAcceleratorCommand = void 0;
5
+ exports.de_WithdrawByoipCidrCommand = exports.de_UpdateListenerCommand = exports.de_UpdateEndpointGroupCommand = exports.de_UpdateCustomRoutingListenerCommand = exports.de_UpdateCustomRoutingAcceleratorAttributesCommand = exports.de_UpdateCustomRoutingAcceleratorCommand = exports.de_UpdateCrossAccountAttachmentCommand = exports.de_UpdateAcceleratorAttributesCommand = exports.de_UpdateAcceleratorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveEndpointsCommand = void 0;
5
6
  const protocol_http_1 = require("@smithy/protocol-http");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const uuid_1 = require("uuid");
@@ -42,6 +43,13 @@ const se_CreateAcceleratorCommand = async (input, context) => {
42
43
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
44
  };
44
45
  exports.se_CreateAcceleratorCommand = se_CreateAcceleratorCommand;
46
+ const se_CreateCrossAccountAttachmentCommand = async (input, context) => {
47
+ const headers = sharedHeaders("CreateCrossAccountAttachment");
48
+ let body;
49
+ body = JSON.stringify(se_CreateCrossAccountAttachmentRequest(input, context));
50
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
51
+ };
52
+ exports.se_CreateCrossAccountAttachmentCommand = se_CreateCrossAccountAttachmentCommand;
45
53
  const se_CreateCustomRoutingAcceleratorCommand = async (input, context) => {
46
54
  const headers = sharedHeaders("CreateCustomRoutingAccelerator");
47
55
  let body;
@@ -84,6 +92,13 @@ const se_DeleteAcceleratorCommand = async (input, context) => {
84
92
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
93
  };
86
94
  exports.se_DeleteAcceleratorCommand = se_DeleteAcceleratorCommand;
95
+ const se_DeleteCrossAccountAttachmentCommand = async (input, context) => {
96
+ const headers = sharedHeaders("DeleteCrossAccountAttachment");
97
+ let body;
98
+ body = JSON.stringify((0, smithy_client_1._json)(input));
99
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
+ };
101
+ exports.se_DeleteCrossAccountAttachmentCommand = se_DeleteCrossAccountAttachmentCommand;
87
102
  const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
88
103
  const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
89
104
  let body;
@@ -147,6 +162,13 @@ const se_DescribeAcceleratorAttributesCommand = async (input, context) => {
147
162
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
163
  };
149
164
  exports.se_DescribeAcceleratorAttributesCommand = se_DescribeAcceleratorAttributesCommand;
165
+ const se_DescribeCrossAccountAttachmentCommand = async (input, context) => {
166
+ const headers = sharedHeaders("DescribeCrossAccountAttachment");
167
+ let body;
168
+ body = JSON.stringify((0, smithy_client_1._json)(input));
169
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
170
+ };
171
+ exports.se_DescribeCrossAccountAttachmentCommand = se_DescribeCrossAccountAttachmentCommand;
150
172
  const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
151
173
  const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
152
174
  let body;
@@ -203,6 +225,27 @@ const se_ListByoipCidrsCommand = async (input, context) => {
203
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
226
  };
205
227
  exports.se_ListByoipCidrsCommand = se_ListByoipCidrsCommand;
228
+ const se_ListCrossAccountAttachmentsCommand = async (input, context) => {
229
+ const headers = sharedHeaders("ListCrossAccountAttachments");
230
+ let body;
231
+ body = JSON.stringify((0, smithy_client_1._json)(input));
232
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
+ };
234
+ exports.se_ListCrossAccountAttachmentsCommand = se_ListCrossAccountAttachmentsCommand;
235
+ const se_ListCrossAccountResourceAccountsCommand = async (input, context) => {
236
+ const headers = sharedHeaders("ListCrossAccountResourceAccounts");
237
+ let body;
238
+ body = JSON.stringify((0, smithy_client_1._json)(input));
239
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
+ };
241
+ exports.se_ListCrossAccountResourceAccountsCommand = se_ListCrossAccountResourceAccountsCommand;
242
+ const se_ListCrossAccountResourcesCommand = async (input, context) => {
243
+ const headers = sharedHeaders("ListCrossAccountResources");
244
+ let body;
245
+ body = JSON.stringify((0, smithy_client_1._json)(input));
246
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
+ };
248
+ exports.se_ListCrossAccountResourcesCommand = se_ListCrossAccountResourcesCommand;
206
249
  const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
207
250
  const headers = sharedHeaders("ListCustomRoutingAccelerators");
208
251
  let body;
@@ -308,6 +351,13 @@ const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
308
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
352
  };
310
353
  exports.se_UpdateAcceleratorAttributesCommand = se_UpdateAcceleratorAttributesCommand;
354
+ const se_UpdateCrossAccountAttachmentCommand = async (input, context) => {
355
+ const headers = sharedHeaders("UpdateCrossAccountAttachment");
356
+ let body;
357
+ body = JSON.stringify((0, smithy_client_1._json)(input));
358
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
+ };
360
+ exports.se_UpdateCrossAccountAttachmentCommand = se_UpdateCrossAccountAttachmentCommand;
311
361
  const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
312
362
  const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
313
363
  let body;
@@ -569,6 +619,51 @@ const de_CreateAcceleratorCommandError = async (output, context) => {
569
619
  });
570
620
  }
571
621
  };
622
+ const de_CreateCrossAccountAttachmentCommand = async (output, context) => {
623
+ if (output.statusCode >= 300) {
624
+ return de_CreateCrossAccountAttachmentCommandError(output, context);
625
+ }
626
+ const data = await parseBody(output.body, context);
627
+ let contents = {};
628
+ contents = de_CreateCrossAccountAttachmentResponse(data, context);
629
+ const response = {
630
+ $metadata: deserializeMetadata(output),
631
+ ...contents,
632
+ };
633
+ return response;
634
+ };
635
+ exports.de_CreateCrossAccountAttachmentCommand = de_CreateCrossAccountAttachmentCommand;
636
+ const de_CreateCrossAccountAttachmentCommandError = async (output, context) => {
637
+ const parsedOutput = {
638
+ ...output,
639
+ body: await parseErrorBody(output.body, context),
640
+ };
641
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
642
+ switch (errorCode) {
643
+ case "AccessDeniedException":
644
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
645
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
646
+ case "InternalServiceErrorException":
647
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
648
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
649
+ case "InvalidArgumentException":
650
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
651
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
652
+ case "LimitExceededException":
653
+ case "com.amazonaws.globalaccelerator#LimitExceededException":
654
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
655
+ case "TransactionInProgressException":
656
+ case "com.amazonaws.globalaccelerator#TransactionInProgressException":
657
+ throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
658
+ default:
659
+ const parsedBody = parsedOutput.body;
660
+ return throwDefaultError({
661
+ output,
662
+ parsedBody,
663
+ errorCode,
664
+ });
665
+ }
666
+ };
572
667
  const de_CreateCustomRoutingAcceleratorCommand = async (output, context) => {
573
668
  if (output.statusCode >= 300) {
574
669
  return de_CreateCustomRoutingAcceleratorCommandError(output, context);
@@ -848,6 +943,48 @@ const de_DeleteAcceleratorCommandError = async (output, context) => {
848
943
  });
849
944
  }
850
945
  };
946
+ const de_DeleteCrossAccountAttachmentCommand = async (output, context) => {
947
+ if (output.statusCode >= 300) {
948
+ return de_DeleteCrossAccountAttachmentCommandError(output, context);
949
+ }
950
+ await (0, smithy_client_1.collectBody)(output.body, context);
951
+ const response = {
952
+ $metadata: deserializeMetadata(output),
953
+ };
954
+ return response;
955
+ };
956
+ exports.de_DeleteCrossAccountAttachmentCommand = de_DeleteCrossAccountAttachmentCommand;
957
+ const de_DeleteCrossAccountAttachmentCommandError = async (output, context) => {
958
+ const parsedOutput = {
959
+ ...output,
960
+ body: await parseErrorBody(output.body, context),
961
+ };
962
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
963
+ switch (errorCode) {
964
+ case "AccessDeniedException":
965
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
966
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
967
+ case "AttachmentNotFoundException":
968
+ case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
969
+ throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
970
+ case "InternalServiceErrorException":
971
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
972
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
973
+ case "InvalidArgumentException":
974
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
975
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
976
+ case "TransactionInProgressException":
977
+ case "com.amazonaws.globalaccelerator#TransactionInProgressException":
978
+ throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
979
+ default:
980
+ const parsedBody = parsedOutput.body;
981
+ return throwDefaultError({
982
+ output,
983
+ parsedBody,
984
+ errorCode,
985
+ });
986
+ }
987
+ };
851
988
  const de_DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
852
989
  if (output.statusCode >= 300) {
853
990
  return de_DeleteCustomRoutingAcceleratorCommandError(output, context);
@@ -1199,6 +1336,48 @@ const de_DescribeAcceleratorAttributesCommandError = async (output, context) =>
1199
1336
  });
1200
1337
  }
1201
1338
  };
1339
+ const de_DescribeCrossAccountAttachmentCommand = async (output, context) => {
1340
+ if (output.statusCode >= 300) {
1341
+ return de_DescribeCrossAccountAttachmentCommandError(output, context);
1342
+ }
1343
+ const data = await parseBody(output.body, context);
1344
+ let contents = {};
1345
+ contents = de_DescribeCrossAccountAttachmentResponse(data, context);
1346
+ const response = {
1347
+ $metadata: deserializeMetadata(output),
1348
+ ...contents,
1349
+ };
1350
+ return response;
1351
+ };
1352
+ exports.de_DescribeCrossAccountAttachmentCommand = de_DescribeCrossAccountAttachmentCommand;
1353
+ const de_DescribeCrossAccountAttachmentCommandError = async (output, context) => {
1354
+ const parsedOutput = {
1355
+ ...output,
1356
+ body: await parseErrorBody(output.body, context),
1357
+ };
1358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1359
+ switch (errorCode) {
1360
+ case "AccessDeniedException":
1361
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
1362
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1363
+ case "AttachmentNotFoundException":
1364
+ case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
1365
+ throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
1366
+ case "InternalServiceErrorException":
1367
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1368
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1369
+ case "InvalidArgumentException":
1370
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1371
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1372
+ default:
1373
+ const parsedBody = parsedOutput.body;
1374
+ return throwDefaultError({
1375
+ output,
1376
+ parsedBody,
1377
+ errorCode,
1378
+ });
1379
+ }
1380
+ };
1202
1381
  const de_DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
1203
1382
  if (output.statusCode >= 300) {
1204
1383
  return de_DescribeCustomRoutingAcceleratorCommandError(output, context);
@@ -1514,6 +1693,129 @@ const de_ListByoipCidrsCommandError = async (output, context) => {
1514
1693
  });
1515
1694
  }
1516
1695
  };
1696
+ const de_ListCrossAccountAttachmentsCommand = async (output, context) => {
1697
+ if (output.statusCode >= 300) {
1698
+ return de_ListCrossAccountAttachmentsCommandError(output, context);
1699
+ }
1700
+ const data = await parseBody(output.body, context);
1701
+ let contents = {};
1702
+ contents = de_ListCrossAccountAttachmentsResponse(data, context);
1703
+ const response = {
1704
+ $metadata: deserializeMetadata(output),
1705
+ ...contents,
1706
+ };
1707
+ return response;
1708
+ };
1709
+ exports.de_ListCrossAccountAttachmentsCommand = de_ListCrossAccountAttachmentsCommand;
1710
+ const de_ListCrossAccountAttachmentsCommandError = async (output, context) => {
1711
+ const parsedOutput = {
1712
+ ...output,
1713
+ body: await parseErrorBody(output.body, context),
1714
+ };
1715
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1716
+ switch (errorCode) {
1717
+ case "AccessDeniedException":
1718
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
1719
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1720
+ case "InternalServiceErrorException":
1721
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1722
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1723
+ case "InvalidArgumentException":
1724
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1725
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1726
+ case "InvalidNextTokenException":
1727
+ case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
1728
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1729
+ default:
1730
+ const parsedBody = parsedOutput.body;
1731
+ return throwDefaultError({
1732
+ output,
1733
+ parsedBody,
1734
+ errorCode,
1735
+ });
1736
+ }
1737
+ };
1738
+ const de_ListCrossAccountResourceAccountsCommand = async (output, context) => {
1739
+ if (output.statusCode >= 300) {
1740
+ return de_ListCrossAccountResourceAccountsCommandError(output, context);
1741
+ }
1742
+ const data = await parseBody(output.body, context);
1743
+ let contents = {};
1744
+ contents = (0, smithy_client_1._json)(data);
1745
+ const response = {
1746
+ $metadata: deserializeMetadata(output),
1747
+ ...contents,
1748
+ };
1749
+ return response;
1750
+ };
1751
+ exports.de_ListCrossAccountResourceAccountsCommand = de_ListCrossAccountResourceAccountsCommand;
1752
+ const de_ListCrossAccountResourceAccountsCommandError = async (output, context) => {
1753
+ const parsedOutput = {
1754
+ ...output,
1755
+ body: await parseErrorBody(output.body, context),
1756
+ };
1757
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1758
+ switch (errorCode) {
1759
+ case "AccessDeniedException":
1760
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
1761
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1762
+ case "InternalServiceErrorException":
1763
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1764
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1765
+ default:
1766
+ const parsedBody = parsedOutput.body;
1767
+ return throwDefaultError({
1768
+ output,
1769
+ parsedBody,
1770
+ errorCode,
1771
+ });
1772
+ }
1773
+ };
1774
+ const de_ListCrossAccountResourcesCommand = async (output, context) => {
1775
+ if (output.statusCode >= 300) {
1776
+ return de_ListCrossAccountResourcesCommandError(output, context);
1777
+ }
1778
+ const data = await parseBody(output.body, context);
1779
+ let contents = {};
1780
+ contents = (0, smithy_client_1._json)(data);
1781
+ const response = {
1782
+ $metadata: deserializeMetadata(output),
1783
+ ...contents,
1784
+ };
1785
+ return response;
1786
+ };
1787
+ exports.de_ListCrossAccountResourcesCommand = de_ListCrossAccountResourcesCommand;
1788
+ const de_ListCrossAccountResourcesCommandError = async (output, context) => {
1789
+ const parsedOutput = {
1790
+ ...output,
1791
+ body: await parseErrorBody(output.body, context),
1792
+ };
1793
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1794
+ switch (errorCode) {
1795
+ case "AcceleratorNotFoundException":
1796
+ case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1797
+ throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1798
+ case "AccessDeniedException":
1799
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
1800
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1801
+ case "InternalServiceErrorException":
1802
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1803
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1804
+ case "InvalidArgumentException":
1805
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1806
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1807
+ case "InvalidNextTokenException":
1808
+ case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
1809
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1810
+ default:
1811
+ const parsedBody = parsedOutput.body;
1812
+ return throwDefaultError({
1813
+ output,
1814
+ parsedBody,
1815
+ errorCode,
1816
+ });
1817
+ }
1818
+ };
1517
1819
  const de_ListCustomRoutingAcceleratorsCommand = async (output, context) => {
1518
1820
  if (output.statusCode >= 300) {
1519
1821
  return de_ListCustomRoutingAcceleratorsCommandError(output, context);
@@ -2141,6 +2443,54 @@ const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
2141
2443
  });
2142
2444
  }
2143
2445
  };
2446
+ const de_UpdateCrossAccountAttachmentCommand = async (output, context) => {
2447
+ if (output.statusCode >= 300) {
2448
+ return de_UpdateCrossAccountAttachmentCommandError(output, context);
2449
+ }
2450
+ const data = await parseBody(output.body, context);
2451
+ let contents = {};
2452
+ contents = de_UpdateCrossAccountAttachmentResponse(data, context);
2453
+ const response = {
2454
+ $metadata: deserializeMetadata(output),
2455
+ ...contents,
2456
+ };
2457
+ return response;
2458
+ };
2459
+ exports.de_UpdateCrossAccountAttachmentCommand = de_UpdateCrossAccountAttachmentCommand;
2460
+ const de_UpdateCrossAccountAttachmentCommandError = async (output, context) => {
2461
+ const parsedOutput = {
2462
+ ...output,
2463
+ body: await parseErrorBody(output.body, context),
2464
+ };
2465
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2466
+ switch (errorCode) {
2467
+ case "AccessDeniedException":
2468
+ case "com.amazonaws.globalaccelerator#AccessDeniedException":
2469
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2470
+ case "AttachmentNotFoundException":
2471
+ case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
2472
+ throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
2473
+ case "InternalServiceErrorException":
2474
+ case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2475
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2476
+ case "InvalidArgumentException":
2477
+ case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2478
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2479
+ case "LimitExceededException":
2480
+ case "com.amazonaws.globalaccelerator#LimitExceededException":
2481
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2482
+ case "TransactionInProgressException":
2483
+ case "com.amazonaws.globalaccelerator#TransactionInProgressException":
2484
+ throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
2485
+ default:
2486
+ const parsedBody = parsedOutput.body;
2487
+ return throwDefaultError({
2488
+ output,
2489
+ parsedBody,
2490
+ errorCode,
2491
+ });
2492
+ }
2493
+ };
2144
2494
  const de_UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
2145
2495
  if (output.statusCode >= 300) {
2146
2496
  return de_UpdateCustomRoutingAcceleratorCommandError(output, context);
@@ -2447,6 +2797,15 @@ const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) =>
2447
2797
  });
2448
2798
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2449
2799
  };
2800
+ const de_AttachmentNotFoundExceptionRes = async (parsedOutput, context) => {
2801
+ const body = parsedOutput.body;
2802
+ const deserialized = (0, smithy_client_1._json)(body);
2803
+ const exception = new models_0_1.AttachmentNotFoundException({
2804
+ $metadata: deserializeMetadata(parsedOutput),
2805
+ ...deserialized,
2806
+ });
2807
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2808
+ };
2450
2809
  const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
2451
2810
  const body = parsedOutput.body;
2452
2811
  const deserialized = (0, smithy_client_1._json)(body);
@@ -2583,6 +2942,15 @@ const se_CreateAcceleratorRequest = (input, context) => {
2583
2942
  Tags: smithy_client_1._json,
2584
2943
  });
2585
2944
  };
2945
+ const se_CreateCrossAccountAttachmentRequest = (input, context) => {
2946
+ return (0, smithy_client_1.take)(input, {
2947
+ IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2948
+ Name: [],
2949
+ Principals: smithy_client_1._json,
2950
+ Resources: smithy_client_1._json,
2951
+ Tags: smithy_client_1._json,
2952
+ });
2953
+ };
2586
2954
  const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
2587
2955
  return (0, smithy_client_1.take)(input, {
2588
2956
  Enabled: [],
@@ -2687,6 +3055,24 @@ const de_AdvertiseByoipCidrResponse = (output, context) => {
2687
3055
  ByoipCidr: (_) => de_ByoipCidr(_, context),
2688
3056
  });
2689
3057
  };
3058
+ const de_Attachment = (output, context) => {
3059
+ return (0, smithy_client_1.take)(output, {
3060
+ AttachmentArn: smithy_client_1.expectString,
3061
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3062
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3063
+ Name: smithy_client_1.expectString,
3064
+ Principals: smithy_client_1._json,
3065
+ Resources: smithy_client_1._json,
3066
+ });
3067
+ };
3068
+ const de_Attachments = (output, context) => {
3069
+ const retVal = (output || [])
3070
+ .filter((e) => e != null)
3071
+ .map((entry) => {
3072
+ return de_Attachment(entry, context);
3073
+ });
3074
+ return retVal;
3075
+ };
2690
3076
  const de_ByoipCidr = (output, context) => {
2691
3077
  return (0, smithy_client_1.take)(output, {
2692
3078
  Cidr: smithy_client_1.expectString,
@@ -2721,6 +3107,11 @@ const de_CreateAcceleratorResponse = (output, context) => {
2721
3107
  Accelerator: (_) => de_Accelerator(_, context),
2722
3108
  });
2723
3109
  };
3110
+ const de_CreateCrossAccountAttachmentResponse = (output, context) => {
3111
+ return (0, smithy_client_1.take)(output, {
3112
+ CrossAccountAttachment: (_) => de_Attachment(_, context),
3113
+ });
3114
+ };
2724
3115
  const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
2725
3116
  return (0, smithy_client_1.take)(output, {
2726
3117
  Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
@@ -2762,6 +3153,11 @@ const de_DescribeAcceleratorResponse = (output, context) => {
2762
3153
  Accelerator: (_) => de_Accelerator(_, context),
2763
3154
  });
2764
3155
  };
3156
+ const de_DescribeCrossAccountAttachmentResponse = (output, context) => {
3157
+ return (0, smithy_client_1.take)(output, {
3158
+ CrossAccountAttachment: (_) => de_Attachment(_, context),
3159
+ });
3160
+ };
2765
3161
  const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
2766
3162
  return (0, smithy_client_1.take)(output, {
2767
3163
  Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
@@ -2806,6 +3202,12 @@ const de_ListByoipCidrsResponse = (output, context) => {
2806
3202
  NextToken: smithy_client_1.expectString,
2807
3203
  });
2808
3204
  };
3205
+ const de_ListCrossAccountAttachmentsResponse = (output, context) => {
3206
+ return (0, smithy_client_1.take)(output, {
3207
+ CrossAccountAttachments: (_) => de_Attachments(_, context),
3208
+ NextToken: smithy_client_1.expectString,
3209
+ });
3210
+ };
2809
3211
  const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
2810
3212
  return (0, smithy_client_1.take)(output, {
2811
3213
  Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
@@ -2828,6 +3230,11 @@ const de_UpdateAcceleratorResponse = (output, context) => {
2828
3230
  Accelerator: (_) => de_Accelerator(_, context),
2829
3231
  });
2830
3232
  };
3233
+ const de_UpdateCrossAccountAttachmentResponse = (output, context) => {
3234
+ return (0, smithy_client_1.take)(output, {
3235
+ CrossAccountAttachment: (_) => de_Attachment(_, context),
3236
+ });
3237
+ };
2831
3238
  const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
2832
3239
  return (0, smithy_client_1.take)(output, {
2833
3240
  Accelerator: (_) => de_CustomRoutingAccelerator(_, context),