@aws-sdk/client-dlm 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 (44) hide show
  1. package/dist-cjs/index.js +19 -85
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateLifecyclePolicyCommand.js +2 -14
  4. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +2 -14
  5. package/dist-es/commands/GetLifecyclePoliciesCommand.js +2 -14
  6. package/dist-es/commands/GetLifecyclePolicyCommand.js +2 -14
  7. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  8. package/dist-es/commands/TagResourceCommand.js +2 -14
  9. package/dist-es/commands/UntagResourceCommand.js +2 -14
  10. package/dist-es/commands/UpdateLifecyclePolicyCommand.js +2 -14
  11. package/dist-es/index.js +1 -0
  12. package/dist-es/runtimeConfig.browser.js +0 -2
  13. package/dist-es/runtimeConfig.js +1 -2
  14. package/dist-es/runtimeConfig.native.js +0 -2
  15. package/dist-es/runtimeConfig.shared.js +2 -0
  16. package/dist-types/commandBuilder.d.ts +18 -0
  17. package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +3 -8
  18. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +3 -8
  19. package/dist-types/commands/GetLifecyclePoliciesCommand.d.ts +3 -8
  20. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +3 -8
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  22. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  23. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  24. package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +3 -8
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  27. package/dist-types/runtimeConfig.d.ts +1 -1
  28. package/dist-types/runtimeConfig.native.d.ts +1 -1
  29. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  30. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  31. package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +7 -16
  32. package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +7 -16
  33. package/dist-types/ts3.4/commands/GetLifecyclePoliciesCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/index.d.ts +1 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  44. 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 } = 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 defaultDLMHttpAuthSchemeParametersProvider = 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
 
@@ -693,6 +695,7 @@ const getRuntimeConfig$1 = (config) => {
693
695
  serviceTarget: "dlm_20180112",
694
696
  },
695
697
  serviceId: config?.serviceId ?? "DLM",
698
+ sha256: config?.sha256 ?? Sha256,
696
699
  urlParser: config?.urlParser ?? parseUrl,
697
700
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
698
701
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -726,7 +729,6 @@ const getRuntimeConfig = (config) => {
726
729
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
727
730
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
728
731
  }, config),
729
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
730
732
  streamCollector: config?.streamCollector ?? streamCollector,
731
733
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
732
734
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -814,100 +816,32 @@ class DLMClient extends Client {
814
816
  }
815
817
  }
816
818
 
817
- class CreateLifecyclePolicyCommand extends Command
818
- .classBuilder()
819
- .ep(commonParams)
820
- .m(function (Command, cs, config, o) {
821
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
822
- })
823
- .s("dlm_20180112", "CreateLifecyclePolicy", {})
824
- .n("DLMClient", "CreateLifecyclePolicyCommand")
825
- .sc(CreateLifecyclePolicy$)
826
- .build() {
819
+ const command = makeBuilder(commonParams, "dlm_20180112", "DLMClient", getEndpointPlugin);
820
+ const _ep0 = {};
821
+ const _mw0 = (Command, cs, config, o) => [];
822
+
823
+ class CreateLifecyclePolicyCommand extends command(_ep0, _mw0, "CreateLifecyclePolicy", CreateLifecyclePolicy$) {
827
824
  }
828
825
 
829
- class DeleteLifecyclePolicyCommand extends Command
830
- .classBuilder()
831
- .ep(commonParams)
832
- .m(function (Command, cs, config, o) {
833
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
834
- })
835
- .s("dlm_20180112", "DeleteLifecyclePolicy", {})
836
- .n("DLMClient", "DeleteLifecyclePolicyCommand")
837
- .sc(DeleteLifecyclePolicy$)
838
- .build() {
826
+ class DeleteLifecyclePolicyCommand extends command(_ep0, _mw0, "DeleteLifecyclePolicy", DeleteLifecyclePolicy$) {
839
827
  }
840
828
 
841
- class GetLifecyclePoliciesCommand extends Command
842
- .classBuilder()
843
- .ep(commonParams)
844
- .m(function (Command, cs, config, o) {
845
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
846
- })
847
- .s("dlm_20180112", "GetLifecyclePolicies", {})
848
- .n("DLMClient", "GetLifecyclePoliciesCommand")
849
- .sc(GetLifecyclePolicies$)
850
- .build() {
829
+ class GetLifecyclePoliciesCommand extends command(_ep0, _mw0, "GetLifecyclePolicies", GetLifecyclePolicies$) {
851
830
  }
852
831
 
853
- class GetLifecyclePolicyCommand extends Command
854
- .classBuilder()
855
- .ep(commonParams)
856
- .m(function (Command, cs, config, o) {
857
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
858
- })
859
- .s("dlm_20180112", "GetLifecyclePolicy", {})
860
- .n("DLMClient", "GetLifecyclePolicyCommand")
861
- .sc(GetLifecyclePolicy$)
862
- .build() {
832
+ class GetLifecyclePolicyCommand extends command(_ep0, _mw0, "GetLifecyclePolicy", GetLifecyclePolicy$) {
863
833
  }
864
834
 
865
- class ListTagsForResourceCommand extends Command
866
- .classBuilder()
867
- .ep(commonParams)
868
- .m(function (Command, cs, config, o) {
869
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
870
- })
871
- .s("dlm_20180112", "ListTagsForResource", {})
872
- .n("DLMClient", "ListTagsForResourceCommand")
873
- .sc(ListTagsForResource$)
874
- .build() {
835
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
875
836
  }
876
837
 
877
- class TagResourceCommand extends Command
878
- .classBuilder()
879
- .ep(commonParams)
880
- .m(function (Command, cs, config, o) {
881
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
882
- })
883
- .s("dlm_20180112", "TagResource", {})
884
- .n("DLMClient", "TagResourceCommand")
885
- .sc(TagResource$)
886
- .build() {
838
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
887
839
  }
888
840
 
889
- class UntagResourceCommand extends Command
890
- .classBuilder()
891
- .ep(commonParams)
892
- .m(function (Command, cs, config, o) {
893
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
894
- })
895
- .s("dlm_20180112", "UntagResource", {})
896
- .n("DLMClient", "UntagResourceCommand")
897
- .sc(UntagResource$)
898
- .build() {
841
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
899
842
  }
900
843
 
901
- class UpdateLifecyclePolicyCommand extends Command
902
- .classBuilder()
903
- .ep(commonParams)
904
- .m(function (Command, cs, config, o) {
905
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
- })
907
- .s("dlm_20180112", "UpdateLifecyclePolicy", {})
908
- .n("DLMClient", "UpdateLifecyclePolicyCommand")
909
- .sc(UpdateLifecyclePolicy$)
910
- .build() {
844
+ class UpdateLifecyclePolicyCommand extends command(_ep0, _mw0, "UpdateLifecyclePolicy", UpdateLifecyclePolicy$) {
911
845
  }
912
846
 
913
847
  const commands = {
@@ -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, "dlm_20180112", "DLMClient", 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 { CreateLifecyclePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateLifecyclePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("dlm_20180112", "CreateLifecyclePolicy", {})
13
- .n("DLMClient", "CreateLifecyclePolicyCommand")
14
- .sc(CreateLifecyclePolicy$)
15
- .build() {
3
+ export class CreateLifecyclePolicyCommand extends command(_ep0, _mw0, "CreateLifecyclePolicy", CreateLifecyclePolicy$) {
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 { DeleteLifecyclePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteLifecyclePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("dlm_20180112", "DeleteLifecyclePolicy", {})
13
- .n("DLMClient", "DeleteLifecyclePolicyCommand")
14
- .sc(DeleteLifecyclePolicy$)
15
- .build() {
3
+ export class DeleteLifecyclePolicyCommand extends command(_ep0, _mw0, "DeleteLifecyclePolicy", DeleteLifecyclePolicy$) {
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 { GetLifecyclePolicies$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLifecyclePoliciesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("dlm_20180112", "GetLifecyclePolicies", {})
13
- .n("DLMClient", "GetLifecyclePoliciesCommand")
14
- .sc(GetLifecyclePolicies$)
15
- .build() {
3
+ export class GetLifecyclePoliciesCommand extends command(_ep0, _mw0, "GetLifecyclePolicies", GetLifecyclePolicies$) {
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 { GetLifecyclePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLifecyclePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("dlm_20180112", "GetLifecyclePolicy", {})
13
- .n("DLMClient", "GetLifecyclePolicyCommand")
14
- .sc(GetLifecyclePolicy$)
15
- .build() {
3
+ export class GetLifecyclePolicyCommand extends command(_ep0, _mw0, "GetLifecyclePolicy", GetLifecyclePolicy$) {
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("dlm_20180112", "ListTagsForResource", {})
13
- .n("DLMClient", "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("dlm_20180112", "TagResource", {})
13
- .n("DLMClient", "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("dlm_20180112", "UntagResource", {})
13
- .n("DLMClient", "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 { UpdateLifecyclePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateLifecyclePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("dlm_20180112", "UpdateLifecyclePolicy", {})
13
- .n("DLMClient", "UpdateLifecyclePolicyCommand")
14
- .sc(UpdateLifecyclePolicy$)
15
- .build() {
3
+ export class UpdateLifecyclePolicyCommand extends command(_ep0, _mw0, "UpdateLifecyclePolicy", UpdateLifecyclePolicy$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./DLMClient";
2
2
  export * from "./DLM";
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 "./models/enums";
6
7
  export * from "./models/errors";
@@ -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: "dlm_20180112",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "DLM",
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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./DLMClient";
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, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, DLMClientResolvedConfig, 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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { CreateLifecyclePolicyRequest, CreateLifecyclePolicyResponse } 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 CreateLifecyclePolicyCommandInput extends CreateLifecyclePolicy
22
19
  export interface CreateLifecyclePolicyCommandOutput extends CreateLifecyclePolicyResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateLifecyclePolicyCommand_base: {
25
- new (input: CreateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates an Amazon Data Lifecycle Manager lifecycle policy. Amazon Data Lifecycle Manager supports the following policy types:</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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { DeleteLifecyclePolicyRequest, DeleteLifecyclePolicyResponse } 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 DeleteLifecyclePolicyCommandInput extends DeleteLifecyclePolicy
22
19
  export interface DeleteLifecyclePolicyCommandOutput extends DeleteLifecyclePolicyResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteLifecyclePolicyCommand_base: {
25
- new (input: DeleteLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified lifecycle policy and halts the automated operations that the
@@ -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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { GetLifecyclePoliciesRequest, GetLifecyclePoliciesResponse } 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 GetLifecyclePoliciesCommandInput extends GetLifecyclePoliciesRe
22
19
  export interface GetLifecyclePoliciesCommandOutput extends GetLifecyclePoliciesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetLifecyclePoliciesCommand_base: {
25
- new (input: GetLifecyclePoliciesCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePoliciesCommandInput, GetLifecyclePoliciesCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetLifecyclePoliciesCommandInput]): import("@smithy/core/client").CommandImpl<GetLifecyclePoliciesCommandInput, GetLifecyclePoliciesCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetLifecyclePoliciesCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePoliciesCommandInput, GetLifecyclePoliciesCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [GetLifecyclePoliciesCommandInput]): import("@smithy/core/client").CommandImpl<GetLifecyclePoliciesCommandInput, GetLifecyclePoliciesCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets summary information about all or the specified data lifecycle policies.</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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { GetLifecyclePolicyRequest, GetLifecyclePolicyResponse } 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 GetLifecyclePolicyCommandInput extends GetLifecyclePolicyReques
22
19
  export interface GetLifecyclePolicyCommandOutput extends GetLifecyclePolicyResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetLifecyclePolicyCommand_base: {
25
- new (input: GetLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetLifecyclePolicyCommandInput, GetLifecyclePolicyCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets detailed information about the specified lifecycle policy.</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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { ListTagsForResourceRequest, ListTagsForResourceResponse } 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 ListTagsForResourceCommandInput extends ListTagsForResourceRequ
22
19
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListTagsForResourceCommand_base: {
25
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists the tags for the specified resource.</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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { TagResourceRequest, TagResourceResponse } 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 TagResourceCommandInput extends TagResourceRequest {
22
19
  export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const TagResourceCommand_base: {
25
- new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Adds the specified tags to the specified resource.</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 { DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DLMClient";
4
2
  import type { UntagResourceRequest, UntagResourceResponse } 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 UntagResourceCommandInput extends UntagResourceRequest {
22
19
  export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const UntagResourceCommand_base: {
25
- new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, DLMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").DLMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Removes the specified tags from the specified resource.</p>