@aws-sdk/client-rbin 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 (50) hide show
  1. package/dist-cjs/index.js +21 -105
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateRuleCommand.js +2 -14
  4. package/dist-es/commands/DeleteRuleCommand.js +2 -14
  5. package/dist-es/commands/GetRuleCommand.js +2 -14
  6. package/dist-es/commands/ListRulesCommand.js +2 -14
  7. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  8. package/dist-es/commands/LockRuleCommand.js +2 -14
  9. package/dist-es/commands/TagResourceCommand.js +2 -14
  10. package/dist-es/commands/UnlockRuleCommand.js +2 -14
  11. package/dist-es/commands/UntagResourceCommand.js +2 -14
  12. package/dist-es/commands/UpdateRuleCommand.js +2 -14
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/runtimeConfig.browser.js +0 -2
  15. package/dist-es/runtimeConfig.js +1 -2
  16. package/dist-es/runtimeConfig.native.js +0 -2
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-types/commandBuilder.d.ts +18 -0
  19. package/dist-types/commands/CreateRuleCommand.d.ts +3 -8
  20. package/dist-types/commands/DeleteRuleCommand.d.ts +3 -8
  21. package/dist-types/commands/GetRuleCommand.d.ts +3 -8
  22. package/dist-types/commands/ListRulesCommand.d.ts +3 -8
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  24. package/dist-types/commands/LockRuleCommand.d.ts +3 -8
  25. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  26. package/dist-types/commands/UnlockRuleCommand.d.ts +3 -8
  27. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/UpdateRuleCommand.d.ts +3 -8
  29. package/dist-types/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +1 -1
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  35. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/LockRuleCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/UnlockRuleCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  50. 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 defaultRbinHttpAuthSchemeParametersProvider = 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
 
@@ -528,6 +530,7 @@ const getRuntimeConfig$1 = (config) => {
528
530
  serviceTarget: "AmazonRecycleBin",
529
531
  },
530
532
  serviceId: config?.serviceId ?? "rbin",
533
+ sha256: config?.sha256 ?? Sha256,
531
534
  urlParser: config?.urlParser ?? parseUrl,
532
535
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
533
536
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -561,7 +564,6 @@ const getRuntimeConfig = (config) => {
561
564
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
562
565
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
563
566
  }, config),
564
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
565
567
  streamCollector: config?.streamCollector ?? streamCollector,
566
568
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
567
569
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -649,124 +651,38 @@ class RbinClient extends Client {
649
651
  }
650
652
  }
651
653
 
652
- class CreateRuleCommand extends Command
653
- .classBuilder()
654
- .ep(commonParams)
655
- .m(function (Command, cs, config, o) {
656
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
657
- })
658
- .s("AmazonRecycleBin", "CreateRule", {})
659
- .n("RbinClient", "CreateRuleCommand")
660
- .sc(CreateRule$)
661
- .build() {
654
+ const command = makeBuilder(commonParams, "AmazonRecycleBin", "RbinClient", getEndpointPlugin);
655
+ const _ep0 = {};
656
+ const _mw0 = (Command, cs, config, o) => [];
657
+
658
+ class CreateRuleCommand extends command(_ep0, _mw0, "CreateRule", CreateRule$) {
662
659
  }
663
660
 
664
- class DeleteRuleCommand extends Command
665
- .classBuilder()
666
- .ep(commonParams)
667
- .m(function (Command, cs, config, o) {
668
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
669
- })
670
- .s("AmazonRecycleBin", "DeleteRule", {})
671
- .n("RbinClient", "DeleteRuleCommand")
672
- .sc(DeleteRule$)
673
- .build() {
661
+ class DeleteRuleCommand extends command(_ep0, _mw0, "DeleteRule", DeleteRule$) {
674
662
  }
675
663
 
676
- class GetRuleCommand extends Command
677
- .classBuilder()
678
- .ep(commonParams)
679
- .m(function (Command, cs, config, o) {
680
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
681
- })
682
- .s("AmazonRecycleBin", "GetRule", {})
683
- .n("RbinClient", "GetRuleCommand")
684
- .sc(GetRule$)
685
- .build() {
664
+ class GetRuleCommand extends command(_ep0, _mw0, "GetRule", GetRule$) {
686
665
  }
687
666
 
688
- class ListRulesCommand extends Command
689
- .classBuilder()
690
- .ep(commonParams)
691
- .m(function (Command, cs, config, o) {
692
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
693
- })
694
- .s("AmazonRecycleBin", "ListRules", {})
695
- .n("RbinClient", "ListRulesCommand")
696
- .sc(ListRules$)
697
- .build() {
667
+ class ListRulesCommand extends command(_ep0, _mw0, "ListRules", ListRules$) {
698
668
  }
699
669
 
700
- class ListTagsForResourceCommand extends Command
701
- .classBuilder()
702
- .ep(commonParams)
703
- .m(function (Command, cs, config, o) {
704
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
705
- })
706
- .s("AmazonRecycleBin", "ListTagsForResource", {})
707
- .n("RbinClient", "ListTagsForResourceCommand")
708
- .sc(ListTagsForResource$)
709
- .build() {
670
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
710
671
  }
711
672
 
712
- class LockRuleCommand extends Command
713
- .classBuilder()
714
- .ep(commonParams)
715
- .m(function (Command, cs, config, o) {
716
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
717
- })
718
- .s("AmazonRecycleBin", "LockRule", {})
719
- .n("RbinClient", "LockRuleCommand")
720
- .sc(LockRule$)
721
- .build() {
673
+ class LockRuleCommand extends command(_ep0, _mw0, "LockRule", LockRule$) {
722
674
  }
723
675
 
724
- class TagResourceCommand extends Command
725
- .classBuilder()
726
- .ep(commonParams)
727
- .m(function (Command, cs, config, o) {
728
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
729
- })
730
- .s("AmazonRecycleBin", "TagResource", {})
731
- .n("RbinClient", "TagResourceCommand")
732
- .sc(TagResource$)
733
- .build() {
676
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
734
677
  }
735
678
 
736
- class UnlockRuleCommand extends Command
737
- .classBuilder()
738
- .ep(commonParams)
739
- .m(function (Command, cs, config, o) {
740
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
741
- })
742
- .s("AmazonRecycleBin", "UnlockRule", {})
743
- .n("RbinClient", "UnlockRuleCommand")
744
- .sc(UnlockRule$)
745
- .build() {
679
+ class UnlockRuleCommand extends command(_ep0, _mw0, "UnlockRule", UnlockRule$) {
746
680
  }
747
681
 
748
- class UntagResourceCommand extends Command
749
- .classBuilder()
750
- .ep(commonParams)
751
- .m(function (Command, cs, config, o) {
752
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
753
- })
754
- .s("AmazonRecycleBin", "UntagResource", {})
755
- .n("RbinClient", "UntagResourceCommand")
756
- .sc(UntagResource$)
757
- .build() {
682
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
758
683
  }
759
684
 
760
- class UpdateRuleCommand extends Command
761
- .classBuilder()
762
- .ep(commonParams)
763
- .m(function (Command, cs, config, o) {
764
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
765
- })
766
- .s("AmazonRecycleBin", "UpdateRule", {})
767
- .n("RbinClient", "UpdateRuleCommand")
768
- .sc(UpdateRule$)
769
- .build() {
685
+ class UpdateRuleCommand extends command(_ep0, _mw0, "UpdateRule", UpdateRule$) {
770
686
  }
771
687
 
772
688
  const paginateListRules = createPaginator(RbinClient, ListRulesCommand, "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, "AmazonRecycleBin", "RbinClient", 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 { CreateRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "CreateRule", {})
13
- .n("RbinClient", "CreateRuleCommand")
14
- .sc(CreateRule$)
15
- .build() {
3
+ export class CreateRuleCommand extends command(_ep0, _mw0, "CreateRule", CreateRule$) {
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 { DeleteRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "DeleteRule", {})
13
- .n("RbinClient", "DeleteRuleCommand")
14
- .sc(DeleteRule$)
15
- .build() {
3
+ export class DeleteRuleCommand extends command(_ep0, _mw0, "DeleteRule", DeleteRule$) {
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 { GetRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "GetRule", {})
13
- .n("RbinClient", "GetRuleCommand")
14
- .sc(GetRule$)
15
- .build() {
3
+ export class GetRuleCommand extends command(_ep0, _mw0, "GetRule", GetRule$) {
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 { ListRules$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRulesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "ListRules", {})
13
- .n("RbinClient", "ListRulesCommand")
14
- .sc(ListRules$)
15
- .build() {
3
+ export class ListRulesCommand extends command(_ep0, _mw0, "ListRules", ListRules$) {
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("AmazonRecycleBin", "ListTagsForResource", {})
13
- .n("RbinClient", "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 { LockRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class LockRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "LockRule", {})
13
- .n("RbinClient", "LockRuleCommand")
14
- .sc(LockRule$)
15
- .build() {
3
+ export class LockRuleCommand extends command(_ep0, _mw0, "LockRule", LockRule$) {
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("AmazonRecycleBin", "TagResource", {})
13
- .n("RbinClient", "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 { UnlockRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UnlockRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "UnlockRule", {})
13
- .n("RbinClient", "UnlockRuleCommand")
14
- .sc(UnlockRule$)
15
- .build() {
3
+ export class UnlockRuleCommand extends command(_ep0, _mw0, "UnlockRule", UnlockRule$) {
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("AmazonRecycleBin", "UntagResource", {})
13
- .n("RbinClient", "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 { UpdateRule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateRuleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonRecycleBin", "UpdateRule", {})
13
- .n("RbinClient", "UpdateRuleCommand")
14
- .sc(UpdateRule$)
15
- .build() {
3
+ export class UpdateRuleCommand extends command(_ep0, _mw0, "UpdateRule", UpdateRule$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./RbinClient";
2
2
  export * from "./Rbin";
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: "AmazonRecycleBin",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "rbin",
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 { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./RbinClient";
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, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, RbinClientResolvedConfig, 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
2
  import type { CreateRuleRequest, CreateRuleResponse } from "../models/models_0";
4
- import type { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RbinClient";
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 CreateRuleCommandInput extends CreateRuleRequest {
22
19
  export interface CreateRuleCommandOutput extends CreateRuleResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateRuleCommand_base: {
25
- new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a Recycle Bin retention rule. You can create two types of retention rules:</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
2
  import type { DeleteRuleRequest, DeleteRuleResponse } from "../models/models_0";
4
- import type { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RbinClient";
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 DeleteRuleCommandInput extends DeleteRuleRequest {
22
19
  export interface DeleteRuleCommandOutput extends DeleteRuleResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteRuleCommand_base: {
25
- new (input: DeleteRuleCommandInput): import("@smithy/core/client").CommandImpl<DeleteRuleCommandInput, DeleteRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteRuleCommandInput): import("@smithy/core/client").CommandImpl<DeleteRuleCommandInput, DeleteRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteRuleCommandInput): import("@smithy/core/client").CommandImpl<DeleteRuleCommandInput, DeleteRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteRuleCommandInput): import("@smithy/core/client").CommandImpl<DeleteRuleCommandInput, DeleteRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a Recycle Bin retention rule. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-delete-rule">
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { GetRuleRequest, GetRuleResponse } from "../models/models_0";
4
- import type { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RbinClient";
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 GetRuleCommandInput extends GetRuleRequest {
22
19
  export interface GetRuleCommandOutput extends GetRuleResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetRuleCommand_base: {
25
- new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetRuleCommandInput): import("@smithy/core/client").CommandImpl<GetRuleCommandInput, GetRuleCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets information about a Recycle Bin retention rule.</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
2
  import type { ListRulesRequest, ListRulesResponse } from "../models/models_0";
4
- import type { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RbinClient";
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 ListRulesCommandInput extends ListRulesRequest {
22
19
  export interface ListRulesCommandOutput extends ListRulesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListRulesCommand_base: {
25
- new (input: ListRulesCommandInput): import("@smithy/core/client").CommandImpl<ListRulesCommandInput, ListRulesCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListRulesCommandInput): import("@smithy/core/client").CommandImpl<ListRulesCommandInput, ListRulesCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListRulesCommandInput): import("@smithy/core/client").CommandImpl<ListRulesCommandInput, ListRulesCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListRulesCommandInput): import("@smithy/core/client").CommandImpl<ListRulesCommandInput, ListRulesCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists the Recycle Bin retention rules in the Region.</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
2
  import type { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
- import type { RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RbinClient";
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, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, RbinClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").RbinClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists the tags assigned to a retention rule.</p>