@aws-sdk/client-interconnect 3.1076.0 → 3.1078.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 (59) hide show
  1. package/dist-cjs/index.js +24 -135
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AcceptConnectionProposalCommand.js +2 -14
  4. package/dist-es/commands/CreateConnectionCommand.js +2 -14
  5. package/dist-es/commands/DeleteConnectionCommand.js +2 -14
  6. package/dist-es/commands/DescribeConnectionProposalCommand.js +2 -14
  7. package/dist-es/commands/GetConnectionCommand.js +2 -14
  8. package/dist-es/commands/GetEnvironmentCommand.js +2 -14
  9. package/dist-es/commands/ListAttachPointsCommand.js +2 -14
  10. package/dist-es/commands/ListConnectionsCommand.js +2 -14
  11. package/dist-es/commands/ListEnvironmentsCommand.js +2 -14
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  13. package/dist-es/commands/TagResourceCommand.js +2 -14
  14. package/dist-es/commands/UntagResourceCommand.js +2 -14
  15. package/dist-es/commands/UpdateConnectionCommand.js +2 -14
  16. package/dist-es/index.js +1 -0
  17. package/dist-es/runtimeConfig.browser.js +0 -2
  18. package/dist-es/runtimeConfig.js +1 -2
  19. package/dist-es/runtimeConfig.native.js +0 -2
  20. package/dist-es/runtimeConfig.shared.js +2 -0
  21. package/dist-types/commandBuilder.d.ts +18 -0
  22. package/dist-types/commands/AcceptConnectionProposalCommand.d.ts +3 -8
  23. package/dist-types/commands/CreateConnectionCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteConnectionCommand.d.ts +3 -8
  25. package/dist-types/commands/DescribeConnectionProposalCommand.d.ts +3 -8
  26. package/dist-types/commands/GetConnectionCommand.d.ts +3 -8
  27. package/dist-types/commands/GetEnvironmentCommand.d.ts +3 -8
  28. package/dist-types/commands/ListAttachPointsCommand.d.ts +3 -8
  29. package/dist-types/commands/ListConnectionsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListEnvironmentsCommand.d.ts +3 -8
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  33. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  34. package/dist-types/commands/UpdateConnectionCommand.d.ts +3 -8
  35. package/dist-types/index.d.ts +1 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/runtimeConfig.d.ts +1 -1
  38. package/dist-types/runtimeConfig.native.d.ts +1 -1
  39. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  40. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  41. package/dist-types/ts3.4/commands/AcceptConnectionProposalCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/DescribeConnectionProposalCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListAttachPointsCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/index.d.ts +1 -0
  55. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  56. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  57. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  58. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  59. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultInterconnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -65,7 +67,7 @@ const commonParams = {
65
67
  Region: { type: "builtInParams", name: "region" },
66
68
  };
67
69
 
68
- var version = "3.1075.0";
70
+ var version = "3.1077.0";
69
71
  var packageInfo = {
70
72
  version: version};
71
73
 
@@ -597,6 +599,7 @@ const getRuntimeConfig$1 = (config) => {
597
599
  serviceTarget: "Interconnect",
598
600
  },
599
601
  serviceId: config?.serviceId ?? "Interconnect",
602
+ sha256: config?.sha256 ?? Sha256,
600
603
  urlParser: config?.urlParser ?? parseUrl,
601
604
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
602
605
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -630,7 +633,6 @@ const getRuntimeConfig = (config) => {
630
633
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
631
634
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
632
635
  }, config),
633
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
634
636
  streamCollector: config?.streamCollector ?? streamCollector,
635
637
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
636
638
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -718,160 +720,47 @@ class InterconnectClient extends Client {
718
720
  }
719
721
  }
720
722
 
721
- class AcceptConnectionProposalCommand extends Command
722
- .classBuilder()
723
- .ep(commonParams)
724
- .m(function (Command, cs, config, o) {
725
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
726
- })
727
- .s("Interconnect", "AcceptConnectionProposal", {})
728
- .n("InterconnectClient", "AcceptConnectionProposalCommand")
729
- .sc(AcceptConnectionProposal$)
730
- .build() {
723
+ const command = makeBuilder(commonParams, "Interconnect", "InterconnectClient", getEndpointPlugin);
724
+ const _ep0 = {};
725
+ const _mw0 = (Command, cs, config, o) => [];
726
+
727
+ class AcceptConnectionProposalCommand extends command(_ep0, _mw0, "AcceptConnectionProposal", AcceptConnectionProposal$) {
731
728
  }
732
729
 
733
- class CreateConnectionCommand extends Command
734
- .classBuilder()
735
- .ep(commonParams)
736
- .m(function (Command, cs, config, o) {
737
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
738
- })
739
- .s("Interconnect", "CreateConnection", {})
740
- .n("InterconnectClient", "CreateConnectionCommand")
741
- .sc(CreateConnection$)
742
- .build() {
730
+ class CreateConnectionCommand extends command(_ep0, _mw0, "CreateConnection", CreateConnection$) {
743
731
  }
744
732
 
745
- class DeleteConnectionCommand extends Command
746
- .classBuilder()
747
- .ep(commonParams)
748
- .m(function (Command, cs, config, o) {
749
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
750
- })
751
- .s("Interconnect", "DeleteConnection", {})
752
- .n("InterconnectClient", "DeleteConnectionCommand")
753
- .sc(DeleteConnection$)
754
- .build() {
733
+ class DeleteConnectionCommand extends command(_ep0, _mw0, "DeleteConnection", DeleteConnection$) {
755
734
  }
756
735
 
757
- class DescribeConnectionProposalCommand extends Command
758
- .classBuilder()
759
- .ep(commonParams)
760
- .m(function (Command, cs, config, o) {
761
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
762
- })
763
- .s("Interconnect", "DescribeConnectionProposal", {})
764
- .n("InterconnectClient", "DescribeConnectionProposalCommand")
765
- .sc(DescribeConnectionProposal$)
766
- .build() {
736
+ class DescribeConnectionProposalCommand extends command(_ep0, _mw0, "DescribeConnectionProposal", DescribeConnectionProposal$) {
767
737
  }
768
738
 
769
- class GetConnectionCommand extends Command
770
- .classBuilder()
771
- .ep(commonParams)
772
- .m(function (Command, cs, config, o) {
773
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
774
- })
775
- .s("Interconnect", "GetConnection", {})
776
- .n("InterconnectClient", "GetConnectionCommand")
777
- .sc(GetConnection$)
778
- .build() {
739
+ class GetConnectionCommand extends command(_ep0, _mw0, "GetConnection", GetConnection$) {
779
740
  }
780
741
 
781
- class GetEnvironmentCommand extends Command
782
- .classBuilder()
783
- .ep(commonParams)
784
- .m(function (Command, cs, config, o) {
785
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
786
- })
787
- .s("Interconnect", "GetEnvironment", {})
788
- .n("InterconnectClient", "GetEnvironmentCommand")
789
- .sc(GetEnvironment$)
790
- .build() {
742
+ class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {
791
743
  }
792
744
 
793
- class ListAttachPointsCommand extends Command
794
- .classBuilder()
795
- .ep(commonParams)
796
- .m(function (Command, cs, config, o) {
797
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
798
- })
799
- .s("Interconnect", "ListAttachPoints", {})
800
- .n("InterconnectClient", "ListAttachPointsCommand")
801
- .sc(ListAttachPoints$)
802
- .build() {
745
+ class ListAttachPointsCommand extends command(_ep0, _mw0, "ListAttachPoints", ListAttachPoints$) {
803
746
  }
804
747
 
805
- class ListConnectionsCommand extends Command
806
- .classBuilder()
807
- .ep(commonParams)
808
- .m(function (Command, cs, config, o) {
809
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
810
- })
811
- .s("Interconnect", "ListConnections", {})
812
- .n("InterconnectClient", "ListConnectionsCommand")
813
- .sc(ListConnections$)
814
- .build() {
748
+ class ListConnectionsCommand extends command(_ep0, _mw0, "ListConnections", ListConnections$) {
815
749
  }
816
750
 
817
- class ListEnvironmentsCommand extends Command
818
- .classBuilder()
819
- .ep(commonParams)
820
- .m(function (Command, cs, config, o) {
821
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
822
- })
823
- .s("Interconnect", "ListEnvironments", {})
824
- .n("InterconnectClient", "ListEnvironmentsCommand")
825
- .sc(ListEnvironments$)
826
- .build() {
751
+ class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {
827
752
  }
828
753
 
829
- class ListTagsForResourceCommand extends Command
830
- .classBuilder()
831
- .ep(commonParams)
832
- .m(function (Command, cs, config, o) {
833
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
834
- })
835
- .s("Interconnect", "ListTagsForResource", {})
836
- .n("InterconnectClient", "ListTagsForResourceCommand")
837
- .sc(ListTagsForResource$)
838
- .build() {
754
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
839
755
  }
840
756
 
841
- class TagResourceCommand extends Command
842
- .classBuilder()
843
- .ep(commonParams)
844
- .m(function (Command, cs, config, o) {
845
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
846
- })
847
- .s("Interconnect", "TagResource", {})
848
- .n("InterconnectClient", "TagResourceCommand")
849
- .sc(TagResource$)
850
- .build() {
757
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
851
758
  }
852
759
 
853
- class UntagResourceCommand extends Command
854
- .classBuilder()
855
- .ep(commonParams)
856
- .m(function (Command, cs, config, o) {
857
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
858
- })
859
- .s("Interconnect", "UntagResource", {})
860
- .n("InterconnectClient", "UntagResourceCommand")
861
- .sc(UntagResource$)
862
- .build() {
760
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
863
761
  }
864
762
 
865
- class UpdateConnectionCommand extends Command
866
- .classBuilder()
867
- .ep(commonParams)
868
- .m(function (Command, cs, config, o) {
869
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
870
- })
871
- .s("Interconnect", "UpdateConnection", {})
872
- .n("InterconnectClient", "UpdateConnectionCommand")
873
- .sc(UpdateConnection$)
874
- .build() {
763
+ class UpdateConnectionCommand extends command(_ep0, _mw0, "UpdateConnection", UpdateConnection$) {
875
764
  }
876
765
 
877
766
  const paginateListAttachPoints = createPaginator(InterconnectClient, ListAttachPointsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "Interconnect", "InterconnectClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AcceptConnectionProposal$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AcceptConnectionProposalCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "AcceptConnectionProposal", {})
13
- .n("InterconnectClient", "AcceptConnectionProposalCommand")
14
- .sc(AcceptConnectionProposal$)
15
- .build() {
3
+ export class AcceptConnectionProposalCommand extends command(_ep0, _mw0, "AcceptConnectionProposal", AcceptConnectionProposal$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateConnection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateConnectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "CreateConnection", {})
13
- .n("InterconnectClient", "CreateConnectionCommand")
14
- .sc(CreateConnection$)
15
- .build() {
3
+ export class CreateConnectionCommand extends command(_ep0, _mw0, "CreateConnection", CreateConnection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteConnection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteConnectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "DeleteConnection", {})
13
- .n("InterconnectClient", "DeleteConnectionCommand")
14
- .sc(DeleteConnection$)
15
- .build() {
3
+ export class DeleteConnectionCommand extends command(_ep0, _mw0, "DeleteConnection", DeleteConnection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeConnectionProposal$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeConnectionProposalCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "DescribeConnectionProposal", {})
13
- .n("InterconnectClient", "DescribeConnectionProposalCommand")
14
- .sc(DescribeConnectionProposal$)
15
- .build() {
3
+ export class DescribeConnectionProposalCommand extends command(_ep0, _mw0, "DescribeConnectionProposal", DescribeConnectionProposal$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetConnection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetConnectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "GetConnection", {})
13
- .n("InterconnectClient", "GetConnectionCommand")
14
- .sc(GetConnection$)
15
- .build() {
3
+ export class GetConnectionCommand extends command(_ep0, _mw0, "GetConnection", GetConnection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetEnvironment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetEnvironmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "GetEnvironment", {})
13
- .n("InterconnectClient", "GetEnvironmentCommand")
14
- .sc(GetEnvironment$)
15
- .build() {
3
+ export class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAttachPoints$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAttachPointsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "ListAttachPoints", {})
13
- .n("InterconnectClient", "ListAttachPointsCommand")
14
- .sc(ListAttachPoints$)
15
- .build() {
3
+ export class ListAttachPointsCommand extends command(_ep0, _mw0, "ListAttachPoints", ListAttachPoints$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListConnections$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListConnectionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "ListConnections", {})
13
- .n("InterconnectClient", "ListConnectionsCommand")
14
- .sc(ListConnections$)
15
- .build() {
3
+ export class ListConnectionsCommand extends command(_ep0, _mw0, "ListConnections", ListConnections$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListEnvironments$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEnvironmentsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "ListEnvironments", {})
13
- .n("InterconnectClient", "ListEnvironmentsCommand")
14
- .sc(ListEnvironments$)
15
- .build() {
3
+ export class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "ListTagsForResource", {})
13
- .n("InterconnectClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "TagResource", {})
13
- .n("InterconnectClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "UntagResource", {})
13
- .n("InterconnectClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateConnection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateConnectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Interconnect", "UpdateConnection", {})
13
- .n("InterconnectClient", "UpdateConnectionCommand")
14
- .sc(UpdateConnection$)
15
- .build() {
3
+ export class UpdateConnectionCommand extends command(_ep0, _mw0, "UpdateConnection", UpdateConnection$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./InterconnectClient";
2
2
  export * from "./Interconnect";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "Interconnect",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Interconnect",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./InterconnectClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InterconnectClient";
4
2
  import type { AcceptConnectionProposalRequest, AcceptConnectionProposalResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface AcceptConnectionProposalCommandInput extends AcceptConnectionPr
22
19
  export interface AcceptConnectionProposalCommandOutput extends AcceptConnectionProposalResponse, __MetadataBearer {
23
20
  }
24
21
  declare const AcceptConnectionProposalCommand_base: {
25
- new (input: AcceptConnectionProposalCommandInput): import("@smithy/core/client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AcceptConnectionProposalCommandInput): import("@smithy/core/client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: AcceptConnectionProposalCommandInput): import("@smithy/core/client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, import("..").InterconnectClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: AcceptConnectionProposalCommandInput): import("@smithy/core/client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, import("..").InterconnectClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Accepts a connection proposal which was generated at a supported partner's portal.</p> <p>The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.</p> <p>Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.</p>