@aws-sdk/client-oam 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 (65) hide show
  1. package/dist-cjs/index.js +26 -155
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateLinkCommand.js +2 -14
  4. package/dist-es/commands/CreateSinkCommand.js +2 -14
  5. package/dist-es/commands/DeleteLinkCommand.js +2 -14
  6. package/dist-es/commands/DeleteSinkCommand.js +2 -14
  7. package/dist-es/commands/GetLinkCommand.js +2 -14
  8. package/dist-es/commands/GetSinkCommand.js +2 -14
  9. package/dist-es/commands/GetSinkPolicyCommand.js +2 -14
  10. package/dist-es/commands/ListAttachedLinksCommand.js +2 -14
  11. package/dist-es/commands/ListLinksCommand.js +2 -14
  12. package/dist-es/commands/ListSinksCommand.js +2 -14
  13. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  14. package/dist-es/commands/PutSinkPolicyCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/commands/UpdateLinkCommand.js +2 -14
  18. package/dist-es/index.js +1 -0
  19. package/dist-es/runtimeConfig.browser.js +0 -2
  20. package/dist-es/runtimeConfig.js +1 -2
  21. package/dist-es/runtimeConfig.native.js +0 -2
  22. package/dist-es/runtimeConfig.shared.js +2 -0
  23. package/dist-types/commandBuilder.d.ts +18 -0
  24. package/dist-types/commands/CreateLinkCommand.d.ts +3 -8
  25. package/dist-types/commands/CreateSinkCommand.d.ts +3 -8
  26. package/dist-types/commands/DeleteLinkCommand.d.ts +3 -8
  27. package/dist-types/commands/DeleteSinkCommand.d.ts +3 -8
  28. package/dist-types/commands/GetLinkCommand.d.ts +3 -8
  29. package/dist-types/commands/GetSinkCommand.d.ts +3 -8
  30. package/dist-types/commands/GetSinkPolicyCommand.d.ts +3 -8
  31. package/dist-types/commands/ListAttachedLinksCommand.d.ts +3 -8
  32. package/dist-types/commands/ListLinksCommand.d.ts +3 -8
  33. package/dist-types/commands/ListSinksCommand.d.ts +3 -8
  34. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  35. package/dist-types/commands/PutSinkPolicyCommand.d.ts +3 -8
  36. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  38. package/dist-types/commands/UpdateLinkCommand.d.ts +3 -8
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/runtimeConfig.d.ts +1 -1
  42. package/dist-types/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  45. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/index.d.ts +1 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  64. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  65. 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, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, 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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultOAMHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -669,6 +671,7 @@ const getRuntimeConfig$1 = (config) => {
669
671
  serviceTarget: "oamservice",
670
672
  },
671
673
  serviceId: config?.serviceId ?? "OAM",
674
+ sha256: config?.sha256 ?? Sha256,
672
675
  urlParser: config?.urlParser ?? parseUrl,
673
676
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
674
677
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -702,7 +705,6 @@ const getRuntimeConfig = (config) => {
702
705
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
703
706
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
704
707
  }, config),
705
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
706
708
  streamCollector: config?.streamCollector ?? streamCollector,
707
709
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
708
710
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -790,184 +792,53 @@ class OAMClient extends Client {
790
792
  }
791
793
  }
792
794
 
793
- class CreateLinkCommand extends Command
794
- .classBuilder()
795
- .ep(commonParams)
796
- .m(function (Command, cs, config, o) {
797
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
798
- })
799
- .s("oamservice", "CreateLink", {})
800
- .n("OAMClient", "CreateLinkCommand")
801
- .sc(CreateLink$)
802
- .build() {
795
+ const command = makeBuilder(commonParams, "oamservice", "OAMClient", getEndpointPlugin);
796
+ const _ep0 = {};
797
+ const _mw0 = (Command, cs, config, o) => [];
798
+
799
+ class CreateLinkCommand extends command(_ep0, _mw0, "CreateLink", CreateLink$) {
803
800
  }
804
801
 
805
- class CreateSinkCommand extends Command
806
- .classBuilder()
807
- .ep(commonParams)
808
- .m(function (Command, cs, config, o) {
809
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
810
- })
811
- .s("oamservice", "CreateSink", {})
812
- .n("OAMClient", "CreateSinkCommand")
813
- .sc(CreateSink$)
814
- .build() {
802
+ class CreateSinkCommand extends command(_ep0, _mw0, "CreateSink", CreateSink$) {
815
803
  }
816
804
 
817
- class DeleteLinkCommand extends Command
818
- .classBuilder()
819
- .ep(commonParams)
820
- .m(function (Command, cs, config, o) {
821
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
822
- })
823
- .s("oamservice", "DeleteLink", {})
824
- .n("OAMClient", "DeleteLinkCommand")
825
- .sc(DeleteLink$)
826
- .build() {
805
+ class DeleteLinkCommand extends command(_ep0, _mw0, "DeleteLink", DeleteLink$) {
827
806
  }
828
807
 
829
- class DeleteSinkCommand extends Command
830
- .classBuilder()
831
- .ep(commonParams)
832
- .m(function (Command, cs, config, o) {
833
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
834
- })
835
- .s("oamservice", "DeleteSink", {})
836
- .n("OAMClient", "DeleteSinkCommand")
837
- .sc(DeleteSink$)
838
- .build() {
808
+ class DeleteSinkCommand extends command(_ep0, _mw0, "DeleteSink", DeleteSink$) {
839
809
  }
840
810
 
841
- class GetLinkCommand extends Command
842
- .classBuilder()
843
- .ep(commonParams)
844
- .m(function (Command, cs, config, o) {
845
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
846
- })
847
- .s("oamservice", "GetLink", {})
848
- .n("OAMClient", "GetLinkCommand")
849
- .sc(GetLink$)
850
- .build() {
811
+ class GetLinkCommand extends command(_ep0, _mw0, "GetLink", GetLink$) {
851
812
  }
852
813
 
853
- class GetSinkCommand extends Command
854
- .classBuilder()
855
- .ep(commonParams)
856
- .m(function (Command, cs, config, o) {
857
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
858
- })
859
- .s("oamservice", "GetSink", {})
860
- .n("OAMClient", "GetSinkCommand")
861
- .sc(GetSink$)
862
- .build() {
814
+ class GetSinkCommand extends command(_ep0, _mw0, "GetSink", GetSink$) {
863
815
  }
864
816
 
865
- class GetSinkPolicyCommand extends Command
866
- .classBuilder()
867
- .ep(commonParams)
868
- .m(function (Command, cs, config, o) {
869
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
870
- })
871
- .s("oamservice", "GetSinkPolicy", {})
872
- .n("OAMClient", "GetSinkPolicyCommand")
873
- .sc(GetSinkPolicy$)
874
- .build() {
817
+ class GetSinkPolicyCommand extends command(_ep0, _mw0, "GetSinkPolicy", GetSinkPolicy$) {
875
818
  }
876
819
 
877
- class ListAttachedLinksCommand extends Command
878
- .classBuilder()
879
- .ep(commonParams)
880
- .m(function (Command, cs, config, o) {
881
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
882
- })
883
- .s("oamservice", "ListAttachedLinks", {})
884
- .n("OAMClient", "ListAttachedLinksCommand")
885
- .sc(ListAttachedLinks$)
886
- .build() {
820
+ class ListAttachedLinksCommand extends command(_ep0, _mw0, "ListAttachedLinks", ListAttachedLinks$) {
887
821
  }
888
822
 
889
- class ListLinksCommand extends Command
890
- .classBuilder()
891
- .ep(commonParams)
892
- .m(function (Command, cs, config, o) {
893
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
894
- })
895
- .s("oamservice", "ListLinks", {})
896
- .n("OAMClient", "ListLinksCommand")
897
- .sc(ListLinks$)
898
- .build() {
823
+ class ListLinksCommand extends command(_ep0, _mw0, "ListLinks", ListLinks$) {
899
824
  }
900
825
 
901
- class ListSinksCommand extends Command
902
- .classBuilder()
903
- .ep(commonParams)
904
- .m(function (Command, cs, config, o) {
905
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
- })
907
- .s("oamservice", "ListSinks", {})
908
- .n("OAMClient", "ListSinksCommand")
909
- .sc(ListSinks$)
910
- .build() {
826
+ class ListSinksCommand extends command(_ep0, _mw0, "ListSinks", ListSinks$) {
911
827
  }
912
828
 
913
- class ListTagsForResourceCommand extends Command
914
- .classBuilder()
915
- .ep(commonParams)
916
- .m(function (Command, cs, config, o) {
917
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
918
- })
919
- .s("oamservice", "ListTagsForResource", {})
920
- .n("OAMClient", "ListTagsForResourceCommand")
921
- .sc(ListTagsForResource$)
922
- .build() {
829
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
923
830
  }
924
831
 
925
- class PutSinkPolicyCommand extends Command
926
- .classBuilder()
927
- .ep(commonParams)
928
- .m(function (Command, cs, config, o) {
929
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
930
- })
931
- .s("oamservice", "PutSinkPolicy", {})
932
- .n("OAMClient", "PutSinkPolicyCommand")
933
- .sc(PutSinkPolicy$)
934
- .build() {
832
+ class PutSinkPolicyCommand extends command(_ep0, _mw0, "PutSinkPolicy", PutSinkPolicy$) {
935
833
  }
936
834
 
937
- class TagResourceCommand extends Command
938
- .classBuilder()
939
- .ep(commonParams)
940
- .m(function (Command, cs, config, o) {
941
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
- })
943
- .s("oamservice", "TagResource", {})
944
- .n("OAMClient", "TagResourceCommand")
945
- .sc(TagResource$)
946
- .build() {
835
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
947
836
  }
948
837
 
949
- class UntagResourceCommand extends Command
950
- .classBuilder()
951
- .ep(commonParams)
952
- .m(function (Command, cs, config, o) {
953
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
954
- })
955
- .s("oamservice", "UntagResource", {})
956
- .n("OAMClient", "UntagResourceCommand")
957
- .sc(UntagResource$)
958
- .build() {
838
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
959
839
  }
960
840
 
961
- class UpdateLinkCommand extends Command
962
- .classBuilder()
963
- .ep(commonParams)
964
- .m(function (Command, cs, config, o) {
965
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
966
- })
967
- .s("oamservice", "UpdateLink", {})
968
- .n("OAMClient", "UpdateLinkCommand")
969
- .sc(UpdateLink$)
970
- .build() {
841
+ class UpdateLinkCommand extends command(_ep0, _mw0, "UpdateLink", UpdateLink$) {
971
842
  }
972
843
 
973
844
  const paginateListAttachedLinks = createPaginator(OAMClient, ListAttachedLinksCommand, "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, "oamservice", "OAMClient", 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 { CreateLink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateLinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "CreateLink", {})
13
- .n("OAMClient", "CreateLinkCommand")
14
- .sc(CreateLink$)
15
- .build() {
3
+ export class CreateLinkCommand extends command(_ep0, _mw0, "CreateLink", CreateLink$) {
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 { CreateSink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateSinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "CreateSink", {})
13
- .n("OAMClient", "CreateSinkCommand")
14
- .sc(CreateSink$)
15
- .build() {
3
+ export class CreateSinkCommand extends command(_ep0, _mw0, "CreateSink", CreateSink$) {
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 { DeleteLink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteLinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "DeleteLink", {})
13
- .n("OAMClient", "DeleteLinkCommand")
14
- .sc(DeleteLink$)
15
- .build() {
3
+ export class DeleteLinkCommand extends command(_ep0, _mw0, "DeleteLink", DeleteLink$) {
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 { DeleteSink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "DeleteSink", {})
13
- .n("OAMClient", "DeleteSinkCommand")
14
- .sc(DeleteSink$)
15
- .build() {
3
+ export class DeleteSinkCommand extends command(_ep0, _mw0, "DeleteSink", DeleteSink$) {
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 { GetLink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "GetLink", {})
13
- .n("OAMClient", "GetLinkCommand")
14
- .sc(GetLink$)
15
- .build() {
3
+ export class GetLinkCommand extends command(_ep0, _mw0, "GetLink", GetLink$) {
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 { GetSink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "GetSink", {})
13
- .n("OAMClient", "GetSinkCommand")
14
- .sc(GetSink$)
15
- .build() {
3
+ export class GetSinkCommand extends command(_ep0, _mw0, "GetSink", GetSink$) {
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 { GetSinkPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSinkPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "GetSinkPolicy", {})
13
- .n("OAMClient", "GetSinkPolicyCommand")
14
- .sc(GetSinkPolicy$)
15
- .build() {
3
+ export class GetSinkPolicyCommand extends command(_ep0, _mw0, "GetSinkPolicy", GetSinkPolicy$) {
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 { ListAttachedLinks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAttachedLinksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "ListAttachedLinks", {})
13
- .n("OAMClient", "ListAttachedLinksCommand")
14
- .sc(ListAttachedLinks$)
15
- .build() {
3
+ export class ListAttachedLinksCommand extends command(_ep0, _mw0, "ListAttachedLinks", ListAttachedLinks$) {
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 { ListLinks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListLinksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "ListLinks", {})
13
- .n("OAMClient", "ListLinksCommand")
14
- .sc(ListLinks$)
15
- .build() {
3
+ export class ListLinksCommand extends command(_ep0, _mw0, "ListLinks", ListLinks$) {
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 { ListSinks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSinksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "ListSinks", {})
13
- .n("OAMClient", "ListSinksCommand")
14
- .sc(ListSinks$)
15
- .build() {
3
+ export class ListSinksCommand extends command(_ep0, _mw0, "ListSinks", ListSinks$) {
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("oamservice", "ListTagsForResource", {})
13
- .n("OAMClient", "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 { PutSinkPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutSinkPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "PutSinkPolicy", {})
13
- .n("OAMClient", "PutSinkPolicyCommand")
14
- .sc(PutSinkPolicy$)
15
- .build() {
3
+ export class PutSinkPolicyCommand extends command(_ep0, _mw0, "PutSinkPolicy", PutSinkPolicy$) {
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("oamservice", "TagResource", {})
13
- .n("OAMClient", "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("oamservice", "UntagResource", {})
13
- .n("OAMClient", "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 { UpdateLink$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateLinkCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("oamservice", "UpdateLink", {})
13
- .n("OAMClient", "UpdateLinkCommand")
14
- .sc(UpdateLink$)
15
- .build() {
3
+ export class UpdateLinkCommand extends command(_ep0, _mw0, "UpdateLink", UpdateLink$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./OAMClient";
2
2
  export * from "./OAM";
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 "./models/enums";
@@ -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 { AwsRestJsonProtocol } 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: "oamservice",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "OAM",
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 { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./OAMClient";
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, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, OAMClientResolvedConfig, 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[];