@aws-sdk/client-global-accelerator 3.437.0 → 3.441.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 (70) 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/endpoint/endpointResolver.js +1 -1
  12. package/dist-cjs/index.js +1 -0
  13. package/dist-cjs/models/models_0.js +15 -1
  14. package/dist-cjs/pagination/ListCrossAccountAttachmentsPaginator.js +29 -0
  15. package/dist-cjs/pagination/ListCrossAccountResourcesPaginator.js +29 -0
  16. package/dist-cjs/pagination/index.js +2 -0
  17. package/dist-cjs/protocols/Aws_json1_1.js +409 -2
  18. package/dist-es/GlobalAccelerator.js +14 -0
  19. package/dist-es/commands/CreateCrossAccountAttachmentCommand.js +47 -0
  20. package/dist-es/commands/DeleteCrossAccountAttachmentCommand.js +47 -0
  21. package/dist-es/commands/DescribeCrossAccountAttachmentCommand.js +47 -0
  22. package/dist-es/commands/ListCrossAccountAttachmentsCommand.js +47 -0
  23. package/dist-es/commands/ListCrossAccountResourceAccountsCommand.js +47 -0
  24. package/dist-es/commands/ListCrossAccountResourcesCommand.js +47 -0
  25. package/dist-es/commands/UpdateCrossAccountAttachmentCommand.js +47 -0
  26. package/dist-es/commands/index.js +7 -0
  27. package/dist-es/endpoint/endpointResolver.js +1 -1
  28. package/dist-es/index.js +1 -0
  29. package/dist-es/models/models_0.js +13 -0
  30. package/dist-es/pagination/ListCrossAccountAttachmentsPaginator.js +25 -0
  31. package/dist-es/pagination/ListCrossAccountResourcesPaginator.js +25 -0
  32. package/dist-es/pagination/index.js +2 -0
  33. package/dist-es/protocols/Aws_json1_1.js +393 -1
  34. package/dist-types/GlobalAccelerator.d.ts +50 -1
  35. package/dist-types/GlobalAcceleratorClient.d.ts +10 -3
  36. package/dist-types/commands/AddCustomRoutingEndpointsCommand.d.ts +1 -0
  37. package/dist-types/commands/AddEndpointsCommand.d.ts +1 -0
  38. package/dist-types/commands/CreateCrossAccountAttachmentCommand.d.ts +126 -0
  39. package/dist-types/commands/CreateEndpointGroupCommand.d.ts +1 -0
  40. package/dist-types/commands/DeleteCrossAccountAttachmentCommand.d.ts +103 -0
  41. package/dist-types/commands/DescribeCrossAccountAttachmentCommand.d.ts +99 -0
  42. package/dist-types/commands/ListCrossAccountAttachmentsCommand.d.ts +103 -0
  43. package/dist-types/commands/ListCrossAccountResourceAccountsCommand.d.ts +79 -0
  44. package/dist-types/commands/ListCrossAccountResourcesCommand.d.ts +97 -0
  45. package/dist-types/commands/UpdateCrossAccountAttachmentCommand.d.ts +141 -0
  46. package/dist-types/commands/UpdateEndpointGroupCommand.d.ts +1 -0
  47. package/dist-types/commands/index.d.ts +7 -0
  48. package/dist-types/index.d.ts +2 -1
  49. package/dist-types/models/models_0.d.ts +316 -4
  50. package/dist-types/pagination/ListCrossAccountAttachmentsPaginator.d.ts +7 -0
  51. package/dist-types/pagination/ListCrossAccountResourcesPaginator.d.ts +7 -0
  52. package/dist-types/pagination/index.d.ts +2 -0
  53. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  54. package/dist-types/ts3.4/GlobalAccelerator.d.ts +119 -0
  55. package/dist-types/ts3.4/GlobalAcceleratorClient.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/CreateCrossAccountAttachmentCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/DeleteCrossAccountAttachmentCommand.d.ts +38 -0
  58. package/dist-types/ts3.4/commands/DescribeCrossAccountAttachmentCommand.d.ts +42 -0
  59. package/dist-types/ts3.4/commands/ListCrossAccountAttachmentsCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/ListCrossAccountResourceAccountsCommand.d.ts +42 -0
  61. package/dist-types/ts3.4/commands/ListCrossAccountResourcesCommand.d.ts +42 -0
  62. package/dist-types/ts3.4/commands/UpdateCrossAccountAttachmentCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  64. package/dist-types/ts3.4/index.d.ts +1 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  66. package/dist-types/ts3.4/pagination/ListCrossAccountAttachmentsPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/ListCrossAccountResourcesPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  69. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  70. package/package.json +7 -6
@@ -4,12 +4,14 @@ import { AddEndpointsCommand, } from "./commands/AddEndpointsCommand";
4
4
  import { AdvertiseByoipCidrCommand, } from "./commands/AdvertiseByoipCidrCommand";
5
5
  import { AllowCustomRoutingTrafficCommand, } from "./commands/AllowCustomRoutingTrafficCommand";
6
6
  import { CreateAcceleratorCommand, } from "./commands/CreateAcceleratorCommand";
7
+ import { CreateCrossAccountAttachmentCommand, } from "./commands/CreateCrossAccountAttachmentCommand";
7
8
  import { CreateCustomRoutingAcceleratorCommand, } from "./commands/CreateCustomRoutingAcceleratorCommand";
8
9
  import { CreateCustomRoutingEndpointGroupCommand, } from "./commands/CreateCustomRoutingEndpointGroupCommand";
9
10
  import { CreateCustomRoutingListenerCommand, } from "./commands/CreateCustomRoutingListenerCommand";
10
11
  import { CreateEndpointGroupCommand, } from "./commands/CreateEndpointGroupCommand";
11
12
  import { CreateListenerCommand, } from "./commands/CreateListenerCommand";
12
13
  import { DeleteAcceleratorCommand, } from "./commands/DeleteAcceleratorCommand";
14
+ import { DeleteCrossAccountAttachmentCommand, } from "./commands/DeleteCrossAccountAttachmentCommand";
13
15
  import { DeleteCustomRoutingAcceleratorCommand, } from "./commands/DeleteCustomRoutingAcceleratorCommand";
14
16
  import { DeleteCustomRoutingEndpointGroupCommand, } from "./commands/DeleteCustomRoutingEndpointGroupCommand";
15
17
  import { DeleteCustomRoutingListenerCommand, } from "./commands/DeleteCustomRoutingListenerCommand";
@@ -19,6 +21,7 @@ import { DenyCustomRoutingTrafficCommand, } from "./commands/DenyCustomRoutingTr
19
21
  import { DeprovisionByoipCidrCommand, } from "./commands/DeprovisionByoipCidrCommand";
20
22
  import { DescribeAcceleratorAttributesCommand, } from "./commands/DescribeAcceleratorAttributesCommand";
21
23
  import { DescribeAcceleratorCommand, } from "./commands/DescribeAcceleratorCommand";
24
+ import { DescribeCrossAccountAttachmentCommand, } from "./commands/DescribeCrossAccountAttachmentCommand";
22
25
  import { DescribeCustomRoutingAcceleratorAttributesCommand, } from "./commands/DescribeCustomRoutingAcceleratorAttributesCommand";
23
26
  import { DescribeCustomRoutingAcceleratorCommand, } from "./commands/DescribeCustomRoutingAcceleratorCommand";
24
27
  import { DescribeCustomRoutingEndpointGroupCommand, } from "./commands/DescribeCustomRoutingEndpointGroupCommand";
@@ -27,6 +30,9 @@ import { DescribeEndpointGroupCommand, } from "./commands/DescribeEndpointGroupC
27
30
  import { DescribeListenerCommand, } from "./commands/DescribeListenerCommand";
28
31
  import { ListAcceleratorsCommand, } from "./commands/ListAcceleratorsCommand";
29
32
  import { ListByoipCidrsCommand, } from "./commands/ListByoipCidrsCommand";
33
+ import { ListCrossAccountAttachmentsCommand, } from "./commands/ListCrossAccountAttachmentsCommand";
34
+ import { ListCrossAccountResourceAccountsCommand, } from "./commands/ListCrossAccountResourceAccountsCommand";
35
+ import { ListCrossAccountResourcesCommand, } from "./commands/ListCrossAccountResourcesCommand";
30
36
  import { ListCustomRoutingAcceleratorsCommand, } from "./commands/ListCustomRoutingAcceleratorsCommand";
31
37
  import { ListCustomRoutingEndpointGroupsCommand, } from "./commands/ListCustomRoutingEndpointGroupsCommand";
32
38
  import { ListCustomRoutingListenersCommand, } from "./commands/ListCustomRoutingListenersCommand";
@@ -42,6 +48,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
42
48
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
43
49
  import { UpdateAcceleratorAttributesCommand, } from "./commands/UpdateAcceleratorAttributesCommand";
44
50
  import { UpdateAcceleratorCommand, } from "./commands/UpdateAcceleratorCommand";
51
+ import { UpdateCrossAccountAttachmentCommand, } from "./commands/UpdateCrossAccountAttachmentCommand";
45
52
  import { UpdateCustomRoutingAcceleratorAttributesCommand, } from "./commands/UpdateCustomRoutingAcceleratorAttributesCommand";
46
53
  import { UpdateCustomRoutingAcceleratorCommand, } from "./commands/UpdateCustomRoutingAcceleratorCommand";
47
54
  import { UpdateCustomRoutingListenerCommand, } from "./commands/UpdateCustomRoutingListenerCommand";
@@ -55,12 +62,14 @@ const commands = {
55
62
  AdvertiseByoipCidrCommand,
56
63
  AllowCustomRoutingTrafficCommand,
57
64
  CreateAcceleratorCommand,
65
+ CreateCrossAccountAttachmentCommand,
58
66
  CreateCustomRoutingAcceleratorCommand,
59
67
  CreateCustomRoutingEndpointGroupCommand,
60
68
  CreateCustomRoutingListenerCommand,
61
69
  CreateEndpointGroupCommand,
62
70
  CreateListenerCommand,
63
71
  DeleteAcceleratorCommand,
72
+ DeleteCrossAccountAttachmentCommand,
64
73
  DeleteCustomRoutingAcceleratorCommand,
65
74
  DeleteCustomRoutingEndpointGroupCommand,
66
75
  DeleteCustomRoutingListenerCommand,
@@ -70,6 +79,7 @@ const commands = {
70
79
  DeprovisionByoipCidrCommand,
71
80
  DescribeAcceleratorCommand,
72
81
  DescribeAcceleratorAttributesCommand,
82
+ DescribeCrossAccountAttachmentCommand,
73
83
  DescribeCustomRoutingAcceleratorCommand,
74
84
  DescribeCustomRoutingAcceleratorAttributesCommand,
75
85
  DescribeCustomRoutingEndpointGroupCommand,
@@ -78,6 +88,9 @@ const commands = {
78
88
  DescribeListenerCommand,
79
89
  ListAcceleratorsCommand,
80
90
  ListByoipCidrsCommand,
91
+ ListCrossAccountAttachmentsCommand,
92
+ ListCrossAccountResourceAccountsCommand,
93
+ ListCrossAccountResourcesCommand,
81
94
  ListCustomRoutingAcceleratorsCommand,
82
95
  ListCustomRoutingEndpointGroupsCommand,
83
96
  ListCustomRoutingListenersCommand,
@@ -93,6 +106,7 @@ const commands = {
93
106
  UntagResourceCommand,
94
107
  UpdateAcceleratorCommand,
95
108
  UpdateAcceleratorAttributesCommand,
109
+ UpdateCrossAccountAttachmentCommand,
96
110
  UpdateCustomRoutingAcceleratorCommand,
97
111
  UpdateCustomRoutingAcceleratorAttributesCommand,
98
112
  UpdateCustomRoutingListenerCommand,
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateCrossAccountAttachmentCommand, se_CreateCrossAccountAttachmentCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class CreateCrossAccountAttachmentCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateCrossAccountAttachmentCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "CreateCrossAccountAttachmentCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "CreateCrossAccountAttachment",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateCrossAccountAttachmentCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateCrossAccountAttachmentCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteCrossAccountAttachmentCommand, se_DeleteCrossAccountAttachmentCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteCrossAccountAttachmentCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCrossAccountAttachmentCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "DeleteCrossAccountAttachmentCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "DeleteCrossAccountAttachment",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteCrossAccountAttachmentCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteCrossAccountAttachmentCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeCrossAccountAttachmentCommand, se_DescribeCrossAccountAttachmentCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DescribeCrossAccountAttachmentCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeCrossAccountAttachmentCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "DescribeCrossAccountAttachmentCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "DescribeCrossAccountAttachment",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeCrossAccountAttachmentCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeCrossAccountAttachmentCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListCrossAccountAttachmentsCommand, se_ListCrossAccountAttachmentsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListCrossAccountAttachmentsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListCrossAccountAttachmentsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "ListCrossAccountAttachmentsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "ListCrossAccountAttachments",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListCrossAccountAttachmentsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListCrossAccountAttachmentsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListCrossAccountResourceAccountsCommand, se_ListCrossAccountResourceAccountsCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListCrossAccountResourceAccountsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListCrossAccountResourceAccountsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "ListCrossAccountResourceAccountsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "ListCrossAccountResourceAccounts",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListCrossAccountResourceAccountsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListCrossAccountResourceAccountsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListCrossAccountResourcesCommand, se_ListCrossAccountResourcesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListCrossAccountResourcesCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListCrossAccountResourcesCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "ListCrossAccountResourcesCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "ListCrossAccountResources",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListCrossAccountResourcesCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListCrossAccountResourcesCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateCrossAccountAttachmentCommand, se_UpdateCrossAccountAttachmentCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateCrossAccountAttachmentCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCrossAccountAttachmentCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "GlobalAcceleratorClient";
26
+ const commandName = "UpdateCrossAccountAttachmentCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "GlobalAccelerator_V20180706",
35
+ operation: "UpdateCrossAccountAttachment",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdateCrossAccountAttachmentCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateCrossAccountAttachmentCommand(output, context);
46
+ }
47
+ }
@@ -3,12 +3,14 @@ export * from "./AddEndpointsCommand";
3
3
  export * from "./AdvertiseByoipCidrCommand";
4
4
  export * from "./AllowCustomRoutingTrafficCommand";
5
5
  export * from "./CreateAcceleratorCommand";
6
+ export * from "./CreateCrossAccountAttachmentCommand";
6
7
  export * from "./CreateCustomRoutingAcceleratorCommand";
7
8
  export * from "./CreateCustomRoutingEndpointGroupCommand";
8
9
  export * from "./CreateCustomRoutingListenerCommand";
9
10
  export * from "./CreateEndpointGroupCommand";
10
11
  export * from "./CreateListenerCommand";
11
12
  export * from "./DeleteAcceleratorCommand";
13
+ export * from "./DeleteCrossAccountAttachmentCommand";
12
14
  export * from "./DeleteCustomRoutingAcceleratorCommand";
13
15
  export * from "./DeleteCustomRoutingEndpointGroupCommand";
14
16
  export * from "./DeleteCustomRoutingListenerCommand";
@@ -18,6 +20,7 @@ export * from "./DenyCustomRoutingTrafficCommand";
18
20
  export * from "./DeprovisionByoipCidrCommand";
19
21
  export * from "./DescribeAcceleratorAttributesCommand";
20
22
  export * from "./DescribeAcceleratorCommand";
23
+ export * from "./DescribeCrossAccountAttachmentCommand";
21
24
  export * from "./DescribeCustomRoutingAcceleratorAttributesCommand";
22
25
  export * from "./DescribeCustomRoutingAcceleratorCommand";
23
26
  export * from "./DescribeCustomRoutingEndpointGroupCommand";
@@ -26,6 +29,9 @@ export * from "./DescribeEndpointGroupCommand";
26
29
  export * from "./DescribeListenerCommand";
27
30
  export * from "./ListAcceleratorsCommand";
28
31
  export * from "./ListByoipCidrsCommand";
32
+ export * from "./ListCrossAccountAttachmentsCommand";
33
+ export * from "./ListCrossAccountResourceAccountsCommand";
34
+ export * from "./ListCrossAccountResourcesCommand";
29
35
  export * from "./ListCustomRoutingAcceleratorsCommand";
30
36
  export * from "./ListCustomRoutingEndpointGroupsCommand";
31
37
  export * from "./ListCustomRoutingListenersCommand";
@@ -41,6 +47,7 @@ export * from "./TagResourceCommand";
41
47
  export * from "./UntagResourceCommand";
42
48
  export * from "./UpdateAcceleratorAttributesCommand";
43
49
  export * from "./UpdateAcceleratorCommand";
50
+ export * from "./UpdateCrossAccountAttachmentCommand";
44
51
  export * from "./UpdateCustomRoutingAcceleratorAttributesCommand";
45
52
  export * from "./UpdateCustomRoutingAcceleratorCommand";
46
53
  export * from "./UpdateCustomRoutingListenerCommand";
@@ -1,4 +1,4 @@
1
- import { resolveEndpoint } from "@aws-sdk/util-endpoints";
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
2
  import { ruleSet } from "./ruleset";
3
3
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
4
  return resolveEndpoint(ruleSet, {
package/dist-es/index.js CHANGED
@@ -3,4 +3,5 @@ export * from "./GlobalAccelerator";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
+ import "@aws-sdk/util-endpoints";
6
7
  export { GlobalAcceleratorServiceException } from "./models/GlobalAcceleratorServiceException";
@@ -211,6 +211,19 @@ export class AssociatedListenerFoundException extends __BaseException {
211
211
  this.Message = opts.Message;
212
212
  }
213
213
  }
214
+ export class AttachmentNotFoundException extends __BaseException {
215
+ constructor(opts) {
216
+ super({
217
+ name: "AttachmentNotFoundException",
218
+ $fault: "client",
219
+ ...opts,
220
+ });
221
+ this.name = "AttachmentNotFoundException";
222
+ this.$fault = "client";
223
+ Object.setPrototypeOf(this, AttachmentNotFoundException.prototype);
224
+ this.Message = opts.Message;
225
+ }
226
+ }
214
227
  export const ClientAffinity = {
215
228
  NONE: "NONE",
216
229
  SOURCE_IP: "SOURCE_IP",
@@ -0,0 +1,25 @@
1
+ import { ListCrossAccountAttachmentsCommand, } from "../commands/ListCrossAccountAttachmentsCommand";
2
+ import { GlobalAcceleratorClient } from "../GlobalAcceleratorClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListCrossAccountAttachmentsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListCrossAccountAttachments(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof GlobalAcceleratorClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected GlobalAccelerator | GlobalAcceleratorClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListCrossAccountResourcesCommand, } from "../commands/ListCrossAccountResourcesCommand";
2
+ import { GlobalAcceleratorClient } from "../GlobalAcceleratorClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListCrossAccountResourcesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListCrossAccountResources(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof GlobalAcceleratorClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected GlobalAccelerator | GlobalAcceleratorClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,6 +1,8 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAcceleratorsPaginator";
3
3
  export * from "./ListByoipCidrsPaginator";
4
+ export * from "./ListCrossAccountAttachmentsPaginator";
5
+ export * from "./ListCrossAccountResourcesPaginator";
4
6
  export * from "./ListCustomRoutingAcceleratorsPaginator";
5
7
  export * from "./ListCustomRoutingEndpointGroupsPaginator";
6
8
  export * from "./ListCustomRoutingListenersPaginator";