@aws-sdk/client-global-accelerator 3.926.0 → 3.928.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 (77) hide show
  1. package/dist-cjs/index.js +1759 -2091
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/GlobalAcceleratorClient.js +2 -0
  4. package/dist-es/commands/AddCustomRoutingEndpointsCommand.js +3 -9
  5. package/dist-es/commands/AddEndpointsCommand.js +3 -9
  6. package/dist-es/commands/AdvertiseByoipCidrCommand.js +3 -9
  7. package/dist-es/commands/AllowCustomRoutingTrafficCommand.js +3 -9
  8. package/dist-es/commands/CreateAcceleratorCommand.js +3 -9
  9. package/dist-es/commands/CreateCrossAccountAttachmentCommand.js +3 -9
  10. package/dist-es/commands/CreateCustomRoutingAcceleratorCommand.js +3 -9
  11. package/dist-es/commands/CreateCustomRoutingEndpointGroupCommand.js +3 -9
  12. package/dist-es/commands/CreateCustomRoutingListenerCommand.js +3 -9
  13. package/dist-es/commands/CreateEndpointGroupCommand.js +3 -9
  14. package/dist-es/commands/CreateListenerCommand.js +3 -9
  15. package/dist-es/commands/DeleteAcceleratorCommand.js +3 -9
  16. package/dist-es/commands/DeleteCrossAccountAttachmentCommand.js +3 -9
  17. package/dist-es/commands/DeleteCustomRoutingAcceleratorCommand.js +3 -9
  18. package/dist-es/commands/DeleteCustomRoutingEndpointGroupCommand.js +3 -9
  19. package/dist-es/commands/DeleteCustomRoutingListenerCommand.js +3 -9
  20. package/dist-es/commands/DeleteEndpointGroupCommand.js +3 -9
  21. package/dist-es/commands/DeleteListenerCommand.js +3 -9
  22. package/dist-es/commands/DenyCustomRoutingTrafficCommand.js +3 -9
  23. package/dist-es/commands/DeprovisionByoipCidrCommand.js +3 -9
  24. package/dist-es/commands/DescribeAcceleratorAttributesCommand.js +3 -9
  25. package/dist-es/commands/DescribeAcceleratorCommand.js +3 -9
  26. package/dist-es/commands/DescribeCrossAccountAttachmentCommand.js +3 -9
  27. package/dist-es/commands/DescribeCustomRoutingAcceleratorAttributesCommand.js +3 -9
  28. package/dist-es/commands/DescribeCustomRoutingAcceleratorCommand.js +3 -9
  29. package/dist-es/commands/DescribeCustomRoutingEndpointGroupCommand.js +3 -9
  30. package/dist-es/commands/DescribeCustomRoutingListenerCommand.js +3 -9
  31. package/dist-es/commands/DescribeEndpointGroupCommand.js +3 -9
  32. package/dist-es/commands/DescribeListenerCommand.js +3 -9
  33. package/dist-es/commands/ListAcceleratorsCommand.js +3 -9
  34. package/dist-es/commands/ListByoipCidrsCommand.js +3 -9
  35. package/dist-es/commands/ListCrossAccountAttachmentsCommand.js +3 -9
  36. package/dist-es/commands/ListCrossAccountResourceAccountsCommand.js +3 -9
  37. package/dist-es/commands/ListCrossAccountResourcesCommand.js +3 -9
  38. package/dist-es/commands/ListCustomRoutingAcceleratorsCommand.js +3 -9
  39. package/dist-es/commands/ListCustomRoutingEndpointGroupsCommand.js +3 -9
  40. package/dist-es/commands/ListCustomRoutingListenersCommand.js +3 -9
  41. package/dist-es/commands/ListCustomRoutingPortMappingsByDestinationCommand.js +3 -9
  42. package/dist-es/commands/ListCustomRoutingPortMappingsCommand.js +3 -9
  43. package/dist-es/commands/ListEndpointGroupsCommand.js +3 -9
  44. package/dist-es/commands/ListListenersCommand.js +3 -9
  45. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  46. package/dist-es/commands/ProvisionByoipCidrCommand.js +3 -9
  47. package/dist-es/commands/RemoveCustomRoutingEndpointsCommand.js +3 -9
  48. package/dist-es/commands/RemoveEndpointsCommand.js +3 -9
  49. package/dist-es/commands/TagResourceCommand.js +3 -9
  50. package/dist-es/commands/UntagResourceCommand.js +3 -9
  51. package/dist-es/commands/UpdateAcceleratorAttributesCommand.js +3 -9
  52. package/dist-es/commands/UpdateAcceleratorCommand.js +3 -9
  53. package/dist-es/commands/UpdateCrossAccountAttachmentCommand.js +3 -9
  54. package/dist-es/commands/UpdateCustomRoutingAcceleratorAttributesCommand.js +3 -9
  55. package/dist-es/commands/UpdateCustomRoutingAcceleratorCommand.js +3 -9
  56. package/dist-es/commands/UpdateCustomRoutingListenerCommand.js +3 -9
  57. package/dist-es/commands/UpdateEndpointGroupCommand.js +3 -9
  58. package/dist-es/commands/UpdateListenerCommand.js +3 -9
  59. package/dist-es/commands/WithdrawByoipCidrCommand.js +3 -9
  60. package/dist-es/runtimeConfig.shared.js +7 -0
  61. package/dist-es/schemas/schemas_0.js +1594 -0
  62. package/dist-types/GlobalAcceleratorClient.d.ts +10 -1
  63. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  64. package/dist-types/runtimeConfig.d.ts +1 -0
  65. package/dist-types/runtimeConfig.native.d.ts +1 -0
  66. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  67. package/dist-types/schemas/schemas_0.d.ts +244 -0
  68. package/dist-types/ts3.4/GlobalAcceleratorClient.d.ts +4 -0
  69. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  70. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  71. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  72. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  73. package/dist-types/ts3.4/schemas/schemas_0.d.ts +249 -0
  74. package/package.json +5 -6
  75. package/dist-es/protocols/Aws_json1_1.js +0 -1643
  76. package/dist-types/protocols/Aws_json1_1.d.ts +0 -506
  77. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -677
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "TagResource", {})
17
13
  .n("GlobalAcceleratorClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UntagResource", {})
17
13
  .n("GlobalAcceleratorClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateAcceleratorAttributesCommand, se_UpdateAcceleratorAttributesCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateAcceleratorAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateAcceleratorAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateAcceleratorAttributes", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateAcceleratorAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateAcceleratorAttributesCommand)
20
- .de(de_UpdateAcceleratorAttributesCommand)
14
+ .sc(UpdateAcceleratorAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateAcceleratorCommand, se_UpdateAcceleratorCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateAccelerator } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateAcceleratorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateAccelerator", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateAcceleratorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateAcceleratorCommand)
20
- .de(de_UpdateAcceleratorCommand)
14
+ .sc(UpdateAccelerator)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCrossAccountAttachmentCommand, se_UpdateCrossAccountAttachmentCommand, } from "../protocols/Aws_json1_1";
4
+ import { UpdateCrossAccountAttachment } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCrossAccountAttachmentCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateCrossAccountAttachment", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateCrossAccountAttachmentCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCrossAccountAttachmentCommand)
20
- .de(de_UpdateCrossAccountAttachmentCommand)
14
+ .sc(UpdateCrossAccountAttachment)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCustomRoutingAcceleratorAttributesCommand, se_UpdateCustomRoutingAcceleratorAttributesCommand, } from "../protocols/Aws_json1_1";
4
+ import { UpdateCustomRoutingAcceleratorAttributes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCustomRoutingAcceleratorAttributesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateCustomRoutingAcceleratorAttributes", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateCustomRoutingAcceleratorAttributesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCustomRoutingAcceleratorAttributesCommand)
20
- .de(de_UpdateCustomRoutingAcceleratorAttributesCommand)
14
+ .sc(UpdateCustomRoutingAcceleratorAttributes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCustomRoutingAcceleratorCommand, se_UpdateCustomRoutingAcceleratorCommand, } from "../protocols/Aws_json1_1";
4
+ import { UpdateCustomRoutingAccelerator } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCustomRoutingAcceleratorCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateCustomRoutingAccelerator", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateCustomRoutingAcceleratorCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCustomRoutingAcceleratorCommand)
20
- .de(de_UpdateCustomRoutingAcceleratorCommand)
14
+ .sc(UpdateCustomRoutingAccelerator)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCustomRoutingListenerCommand, se_UpdateCustomRoutingListenerCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateCustomRoutingListener } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCustomRoutingListenerCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateCustomRoutingListener", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateCustomRoutingListenerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCustomRoutingListenerCommand)
20
- .de(de_UpdateCustomRoutingListenerCommand)
14
+ .sc(UpdateCustomRoutingListener)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateEndpointGroupCommand, se_UpdateEndpointGroupCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateEndpointGroup } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateEndpointGroupCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateEndpointGroup", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateEndpointGroupCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateEndpointGroupCommand)
20
- .de(de_UpdateEndpointGroupCommand)
14
+ .sc(UpdateEndpointGroup)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateListenerCommand, se_UpdateListenerCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateListener } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateListenerCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "UpdateListener", {})
17
13
  .n("GlobalAcceleratorClient", "UpdateListenerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateListenerCommand)
20
- .de(de_UpdateListenerCommand)
14
+ .sc(UpdateListener)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_WithdrawByoipCidrCommand, se_WithdrawByoipCidrCommand } from "../protocols/Aws_json1_1";
4
+ import { WithdrawByoipCidr } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class WithdrawByoipCidrCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("GlobalAccelerator_V20180706", "WithdrawByoipCidr", {})
17
13
  .n("GlobalAcceleratorClient", "WithdrawByoipCidrCommand")
18
- .f(void 0, void 0)
19
- .ser(se_WithdrawByoipCidrCommand)
20
- .de(de_WithdrawByoipCidrCommand)
14
+ .sc(WithdrawByoipCidr)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.globalaccelerator",
29
+ serviceTarget: "GlobalAccelerator_V20180706",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Global Accelerator",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,