@aws-sdk/client-backupsearch 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 (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/GetSearchJobCommand.js +2 -14
  4. package/dist-es/commands/GetSearchResultExportJobCommand.js +2 -14
  5. package/dist-es/commands/ListSearchJobBackupsCommand.js +2 -14
  6. package/dist-es/commands/ListSearchJobResultsCommand.js +2 -14
  7. package/dist-es/commands/ListSearchJobsCommand.js +2 -14
  8. package/dist-es/commands/ListSearchResultExportJobsCommand.js +2 -14
  9. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  10. package/dist-es/commands/StartSearchJobCommand.js +2 -14
  11. package/dist-es/commands/StartSearchResultExportJobCommand.js +2 -14
  12. package/dist-es/commands/StopSearchJobCommand.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/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/GetSearchJobCommand.d.ts +3 -8
  22. package/dist-types/commands/GetSearchResultExportJobCommand.d.ts +3 -8
  23. package/dist-types/commands/ListSearchJobBackupsCommand.d.ts +3 -8
  24. package/dist-types/commands/ListSearchJobResultsCommand.d.ts +3 -8
  25. package/dist-types/commands/ListSearchJobsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListSearchResultExportJobsCommand.d.ts +3 -8
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/StartSearchJobCommand.d.ts +3 -8
  29. package/dist-types/commands/StartSearchResultExportJobCommand.d.ts +3 -8
  30. package/dist-types/commands/StopSearchJobCommand.d.ts +3 -8
  31. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/GetSearchJobCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/GetSearchResultExportJobCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListSearchJobBackupsCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListSearchJobResultsCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/ListSearchJobsCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/ListSearchResultExportJobsCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/StartSearchJobCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/StartSearchResultExportJobCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/StopSearchJobCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. 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 defaultBackupSearchHttpAuthSchemeParametersProvider = 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
 
@@ -733,6 +735,7 @@ const getRuntimeConfig$1 = (config) => {
733
735
  serviceTarget: "CryoBackupSearchService",
734
736
  },
735
737
  serviceId: config?.serviceId ?? "BackupSearch",
738
+ sha256: config?.sha256 ?? Sha256,
736
739
  urlParser: config?.urlParser ?? parseUrl,
737
740
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
738
741
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -766,7 +769,6 @@ const getRuntimeConfig = (config) => {
766
769
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
767
770
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
768
771
  }, config),
769
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
770
772
  streamCollector: config?.streamCollector ?? streamCollector,
771
773
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
772
774
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -854,148 +856,44 @@ class BackupSearchClient extends Client {
854
856
  }
855
857
  }
856
858
 
857
- class GetSearchJobCommand extends Command
858
- .classBuilder()
859
- .ep(commonParams)
860
- .m(function (Command, cs, config, o) {
861
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
862
- })
863
- .s("CryoBackupSearchService", "GetSearchJob", {})
864
- .n("BackupSearchClient", "GetSearchJobCommand")
865
- .sc(GetSearchJob$)
866
- .build() {
859
+ const command = makeBuilder(commonParams, "CryoBackupSearchService", "BackupSearchClient", getEndpointPlugin);
860
+ const _ep0 = {};
861
+ const _mw0 = (Command, cs, config, o) => [];
862
+
863
+ class GetSearchJobCommand extends command(_ep0, _mw0, "GetSearchJob", GetSearchJob$) {
867
864
  }
868
865
 
869
- class GetSearchResultExportJobCommand extends Command
870
- .classBuilder()
871
- .ep(commonParams)
872
- .m(function (Command, cs, config, o) {
873
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
874
- })
875
- .s("CryoBackupSearchService", "GetSearchResultExportJob", {})
876
- .n("BackupSearchClient", "GetSearchResultExportJobCommand")
877
- .sc(GetSearchResultExportJob$)
878
- .build() {
866
+ class GetSearchResultExportJobCommand extends command(_ep0, _mw0, "GetSearchResultExportJob", GetSearchResultExportJob$) {
879
867
  }
880
868
 
881
- class ListSearchJobBackupsCommand extends Command
882
- .classBuilder()
883
- .ep(commonParams)
884
- .m(function (Command, cs, config, o) {
885
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
886
- })
887
- .s("CryoBackupSearchService", "ListSearchJobBackups", {})
888
- .n("BackupSearchClient", "ListSearchJobBackupsCommand")
889
- .sc(ListSearchJobBackups$)
890
- .build() {
869
+ class ListSearchJobBackupsCommand extends command(_ep0, _mw0, "ListSearchJobBackups", ListSearchJobBackups$) {
891
870
  }
892
871
 
893
- class ListSearchJobResultsCommand extends Command
894
- .classBuilder()
895
- .ep(commonParams)
896
- .m(function (Command, cs, config, o) {
897
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
898
- })
899
- .s("CryoBackupSearchService", "ListSearchJobResults", {})
900
- .n("BackupSearchClient", "ListSearchJobResultsCommand")
901
- .sc(ListSearchJobResults$)
902
- .build() {
872
+ class ListSearchJobResultsCommand extends command(_ep0, _mw0, "ListSearchJobResults", ListSearchJobResults$) {
903
873
  }
904
874
 
905
- class ListSearchJobsCommand extends Command
906
- .classBuilder()
907
- .ep(commonParams)
908
- .m(function (Command, cs, config, o) {
909
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
910
- })
911
- .s("CryoBackupSearchService", "ListSearchJobs", {})
912
- .n("BackupSearchClient", "ListSearchJobsCommand")
913
- .sc(ListSearchJobs$)
914
- .build() {
875
+ class ListSearchJobsCommand extends command(_ep0, _mw0, "ListSearchJobs", ListSearchJobs$) {
915
876
  }
916
877
 
917
- class ListSearchResultExportJobsCommand extends Command
918
- .classBuilder()
919
- .ep(commonParams)
920
- .m(function (Command, cs, config, o) {
921
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
922
- })
923
- .s("CryoBackupSearchService", "ListSearchResultExportJobs", {})
924
- .n("BackupSearchClient", "ListSearchResultExportJobsCommand")
925
- .sc(ListSearchResultExportJobs$)
926
- .build() {
878
+ class ListSearchResultExportJobsCommand extends command(_ep0, _mw0, "ListSearchResultExportJobs", ListSearchResultExportJobs$) {
927
879
  }
928
880
 
929
- class ListTagsForResourceCommand extends Command
930
- .classBuilder()
931
- .ep(commonParams)
932
- .m(function (Command, cs, config, o) {
933
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
934
- })
935
- .s("CryoBackupSearchService", "ListTagsForResource", {})
936
- .n("BackupSearchClient", "ListTagsForResourceCommand")
937
- .sc(ListTagsForResource$)
938
- .build() {
881
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
939
882
  }
940
883
 
941
- class StartSearchJobCommand extends Command
942
- .classBuilder()
943
- .ep(commonParams)
944
- .m(function (Command, cs, config, o) {
945
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
946
- })
947
- .s("CryoBackupSearchService", "StartSearchJob", {})
948
- .n("BackupSearchClient", "StartSearchJobCommand")
949
- .sc(StartSearchJob$)
950
- .build() {
884
+ class StartSearchJobCommand extends command(_ep0, _mw0, "StartSearchJob", StartSearchJob$) {
951
885
  }
952
886
 
953
- class StartSearchResultExportJobCommand extends Command
954
- .classBuilder()
955
- .ep(commonParams)
956
- .m(function (Command, cs, config, o) {
957
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
958
- })
959
- .s("CryoBackupSearchService", "StartSearchResultExportJob", {})
960
- .n("BackupSearchClient", "StartSearchResultExportJobCommand")
961
- .sc(StartSearchResultExportJob$)
962
- .build() {
887
+ class StartSearchResultExportJobCommand extends command(_ep0, _mw0, "StartSearchResultExportJob", StartSearchResultExportJob$) {
963
888
  }
964
889
 
965
- class StopSearchJobCommand extends Command
966
- .classBuilder()
967
- .ep(commonParams)
968
- .m(function (Command, cs, config, o) {
969
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
970
- })
971
- .s("CryoBackupSearchService", "StopSearchJob", {})
972
- .n("BackupSearchClient", "StopSearchJobCommand")
973
- .sc(StopSearchJob$)
974
- .build() {
890
+ class StopSearchJobCommand extends command(_ep0, _mw0, "StopSearchJob", StopSearchJob$) {
975
891
  }
976
892
 
977
- class TagResourceCommand extends Command
978
- .classBuilder()
979
- .ep(commonParams)
980
- .m(function (Command, cs, config, o) {
981
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
982
- })
983
- .s("CryoBackupSearchService", "TagResource", {})
984
- .n("BackupSearchClient", "TagResourceCommand")
985
- .sc(TagResource$)
986
- .build() {
893
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
987
894
  }
988
895
 
989
- class UntagResourceCommand extends Command
990
- .classBuilder()
991
- .ep(commonParams)
992
- .m(function (Command, cs, config, o) {
993
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
994
- })
995
- .s("CryoBackupSearchService", "UntagResource", {})
996
- .n("BackupSearchClient", "UntagResourceCommand")
997
- .sc(UntagResource$)
998
- .build() {
896
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
999
897
  }
1000
898
 
1001
899
  const paginateListSearchJobBackups = createPaginator(BackupSearchClient, ListSearchJobBackupsCommand, "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, "CryoBackupSearchService", "BackupSearchClient", 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 { GetSearchJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSearchJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "GetSearchJob", {})
13
- .n("BackupSearchClient", "GetSearchJobCommand")
14
- .sc(GetSearchJob$)
15
- .build() {
3
+ export class GetSearchJobCommand extends command(_ep0, _mw0, "GetSearchJob", GetSearchJob$) {
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 { GetSearchResultExportJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSearchResultExportJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "GetSearchResultExportJob", {})
13
- .n("BackupSearchClient", "GetSearchResultExportJobCommand")
14
- .sc(GetSearchResultExportJob$)
15
- .build() {
3
+ export class GetSearchResultExportJobCommand extends command(_ep0, _mw0, "GetSearchResultExportJob", GetSearchResultExportJob$) {
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 { ListSearchJobBackups$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSearchJobBackupsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "ListSearchJobBackups", {})
13
- .n("BackupSearchClient", "ListSearchJobBackupsCommand")
14
- .sc(ListSearchJobBackups$)
15
- .build() {
3
+ export class ListSearchJobBackupsCommand extends command(_ep0, _mw0, "ListSearchJobBackups", ListSearchJobBackups$) {
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 { ListSearchJobResults$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSearchJobResultsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "ListSearchJobResults", {})
13
- .n("BackupSearchClient", "ListSearchJobResultsCommand")
14
- .sc(ListSearchJobResults$)
15
- .build() {
3
+ export class ListSearchJobResultsCommand extends command(_ep0, _mw0, "ListSearchJobResults", ListSearchJobResults$) {
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 { ListSearchJobs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSearchJobsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "ListSearchJobs", {})
13
- .n("BackupSearchClient", "ListSearchJobsCommand")
14
- .sc(ListSearchJobs$)
15
- .build() {
3
+ export class ListSearchJobsCommand extends command(_ep0, _mw0, "ListSearchJobs", ListSearchJobs$) {
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 { ListSearchResultExportJobs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSearchResultExportJobsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "ListSearchResultExportJobs", {})
13
- .n("BackupSearchClient", "ListSearchResultExportJobsCommand")
14
- .sc(ListSearchResultExportJobs$)
15
- .build() {
3
+ export class ListSearchResultExportJobsCommand extends command(_ep0, _mw0, "ListSearchResultExportJobs", ListSearchResultExportJobs$) {
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("CryoBackupSearchService", "ListTagsForResource", {})
13
- .n("BackupSearchClient", "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 { StartSearchJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartSearchJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "StartSearchJob", {})
13
- .n("BackupSearchClient", "StartSearchJobCommand")
14
- .sc(StartSearchJob$)
15
- .build() {
3
+ export class StartSearchJobCommand extends command(_ep0, _mw0, "StartSearchJob", StartSearchJob$) {
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 { StartSearchResultExportJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartSearchResultExportJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "StartSearchResultExportJob", {})
13
- .n("BackupSearchClient", "StartSearchResultExportJobCommand")
14
- .sc(StartSearchResultExportJob$)
15
- .build() {
3
+ export class StartSearchResultExportJobCommand extends command(_ep0, _mw0, "StartSearchResultExportJob", StartSearchResultExportJob$) {
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 { StopSearchJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopSearchJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("CryoBackupSearchService", "StopSearchJob", {})
13
- .n("BackupSearchClient", "StopSearchJobCommand")
14
- .sc(StopSearchJob$)
15
- .build() {
3
+ export class StopSearchJobCommand extends command(_ep0, _mw0, "StopSearchJob", StopSearchJob$) {
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("CryoBackupSearchService", "TagResource", {})
13
- .n("BackupSearchClient", "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("CryoBackupSearchService", "UntagResource", {})
13
- .n("BackupSearchClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BackupSearchClient";
2
2
  export * from "./BackupSearch";
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: "CryoBackupSearchService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "BackupSearch",
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 { BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./BackupSearchClient";
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, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, BackupSearchClientResolvedConfig, 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 { BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupSearchClient";
4
2
  import type { GetSearchJobInput, GetSearchJobOutput } 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 GetSearchJobCommandInput extends GetSearchJobInput {
22
19
  export interface GetSearchJobCommandOutput extends GetSearchJobOutput, __MetadataBearer {
23
20
  }
24
21
  declare const GetSearchJobCommand_base: {
25
- new (input: GetSearchJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchJobCommandInput, GetSearchJobCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetSearchJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchJobCommandInput, GetSearchJobCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetSearchJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchJobCommandInput, GetSearchJobCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetSearchJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchJobCommandInput, GetSearchJobCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This operation retrieves metadata of a search job, including its progress.</p>
@@ -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 { BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupSearchClient";
4
2
  import type { GetSearchResultExportJobInput, GetSearchResultExportJobOutput } 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 GetSearchResultExportJobCommandInput extends GetSearchResultExp
22
19
  export interface GetSearchResultExportJobCommandOutput extends GetSearchResultExportJobOutput, __MetadataBearer {
23
20
  }
24
21
  declare const GetSearchResultExportJobCommand_base: {
25
- new (input: GetSearchResultExportJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchResultExportJobCommandInput, GetSearchResultExportJobCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetSearchResultExportJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchResultExportJobCommandInput, GetSearchResultExportJobCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetSearchResultExportJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchResultExportJobCommandInput, GetSearchResultExportJobCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetSearchResultExportJobCommandInput): import("@smithy/core/client").CommandImpl<GetSearchResultExportJobCommandInput, GetSearchResultExportJobCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This operation retrieves the metadata of an export job.</p> <p>An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file.</p> <p>An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.</p>
@@ -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 { BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupSearchClient";
4
2
  import type { ListSearchJobBackupsInput, ListSearchJobBackupsOutput } 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 ListSearchJobBackupsCommandInput extends ListSearchJobBackupsIn
22
19
  export interface ListSearchJobBackupsCommandOutput extends ListSearchJobBackupsOutput, __MetadataBearer {
23
20
  }
24
21
  declare const ListSearchJobBackupsCommand_base: {
25
- new (input: ListSearchJobBackupsCommandInput): import("@smithy/core/client").CommandImpl<ListSearchJobBackupsCommandInput, ListSearchJobBackupsCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListSearchJobBackupsCommandInput): import("@smithy/core/client").CommandImpl<ListSearchJobBackupsCommandInput, ListSearchJobBackupsCommandOutput, BackupSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListSearchJobBackupsCommandInput): import("@smithy/core/client").CommandImpl<ListSearchJobBackupsCommandInput, ListSearchJobBackupsCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListSearchJobBackupsCommandInput): import("@smithy/core/client").CommandImpl<ListSearchJobBackupsCommandInput, ListSearchJobBackupsCommandOutput, import("..").BackupSearchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.</p> <p>If a search does not display an expected backup in the results, you can call this operation to display each backup included in the search. Any backups that were not included because they have a <code>FAILED</code> status from a permissions issue will be displayed, along with a status message.</p> <p>Only recovery points with a backup index that has a status of <code>ACTIVE</code> will be included in search results. If the index has any other status, its status will be displayed along with a status message.</p>