@aws-sdk/client-s3-control 3.451.0 → 3.454.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 (61) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/S3Control.js +16 -0
  3. package/dist-cjs/commands/CreateStorageLensGroupCommand.js +56 -0
  4. package/dist-cjs/commands/DeleteStorageLensGroupCommand.js +56 -0
  5. package/dist-cjs/commands/GetStorageLensGroupCommand.js +56 -0
  6. package/dist-cjs/commands/ListStorageLensGroupsCommand.js +56 -0
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +56 -0
  8. package/dist-cjs/commands/TagResourceCommand.js +56 -0
  9. package/dist-cjs/commands/UntagResourceCommand.js +56 -0
  10. package/dist-cjs/commands/UpdateStorageLensGroupCommand.js +56 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/pagination/ListStorageLensGroupsPaginator.js +28 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restXml.js +968 -3
  15. package/dist-es/S3Control.js +16 -0
  16. package/dist-es/commands/CreateStorageLensGroupCommand.js +52 -0
  17. package/dist-es/commands/DeleteStorageLensGroupCommand.js +52 -0
  18. package/dist-es/commands/GetStorageLensGroupCommand.js +52 -0
  19. package/dist-es/commands/ListStorageLensGroupsCommand.js +52 -0
  20. package/dist-es/commands/ListTagsForResourceCommand.js +52 -0
  21. package/dist-es/commands/TagResourceCommand.js +52 -0
  22. package/dist-es/commands/UntagResourceCommand.js +52 -0
  23. package/dist-es/commands/UpdateStorageLensGroupCommand.js +52 -0
  24. package/dist-es/commands/index.js +8 -0
  25. package/dist-es/pagination/ListStorageLensGroupsPaginator.js +24 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_restXml.js +949 -0
  28. package/dist-types/S3Control.d.ts +56 -0
  29. package/dist-types/S3ControlClient.d.ts +10 -2
  30. package/dist-types/commands/CreateStorageLensGroupCommand.d.ts +159 -0
  31. package/dist-types/commands/DeleteBucketLifecycleConfigurationCommand.d.ts +3 -3
  32. package/dist-types/commands/DeleteStorageLensGroupCommand.d.ts +78 -0
  33. package/dist-types/commands/GetStorageLensConfigurationCommand.d.ts +10 -0
  34. package/dist-types/commands/GetStorageLensGroupCommand.d.ts +149 -0
  35. package/dist-types/commands/ListStorageLensGroupsCommand.d.ts +88 -0
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  37. package/dist-types/commands/PutStorageLensConfigurationCommand.d.ts +10 -0
  38. package/dist-types/commands/TagResourceCommand.d.ts +86 -0
  39. package/dist-types/commands/UntagResourceCommand.d.ts +84 -0
  40. package/dist-types/commands/UpdateStorageLensGroupCommand.d.ts +148 -0
  41. package/dist-types/commands/index.d.ts +8 -0
  42. package/dist-types/models/models_0.d.ts +555 -7
  43. package/dist-types/pagination/ListStorageLensGroupsPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +1 -0
  45. package/dist-types/protocols/Aws_restXml.d.ts +72 -0
  46. package/dist-types/ts3.4/S3Control.d.ts +136 -0
  47. package/dist-types/ts3.4/S3ControlClient.d.ts +50 -2
  48. package/dist-types/ts3.4/commands/CreateStorageLensGroupCommand.d.ts +37 -0
  49. package/dist-types/ts3.4/commands/DeleteStorageLensGroupCommand.d.ts +37 -0
  50. package/dist-types/ts3.4/commands/GetStorageLensGroupCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/ListStorageLensGroupsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  54. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  55. package/dist-types/ts3.4/commands/UpdateStorageLensGroupCommand.d.ts +37 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +101 -0
  58. package/dist-types/ts3.4/pagination/ListStorageLensGroupsPaginator.d.ts +11 -0
  59. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  60. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +96 -0
  61. package/package.json +2 -2
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateStorageLensGroupCommand = exports.$Command = void 0;
4
+ const middleware_sdk_s3_control_1 = require("@aws-sdk/middleware-sdk-s3-control");
5
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
+ const middleware_serde_1 = require("@smithy/middleware-serde");
7
+ const smithy_client_1 = require("@smithy/smithy-client");
8
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
+ const types_1 = require("@smithy/types");
10
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
11
+ class UpdateStorageLensGroupCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ RequiresAccountId: { type: "staticContextParams", value: true },
15
+ AccountId: { type: "contextParams", name: "AccountId" },
16
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
17
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
18
+ Endpoint: { type: "builtInParams", name: "endpoint" },
19
+ Region: { type: "builtInParams", name: "region" },
20
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
21
+ };
22
+ }
23
+ constructor(input) {
24
+ super();
25
+ this.input = input;
26
+ }
27
+ resolveMiddleware(clientStack, configuration, options) {
28
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
29
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateStorageLensGroupCommand.getEndpointParameterInstructions()));
30
+ this.middlewareStack.use((0, middleware_sdk_s3_control_1.getProcessArnablesPlugin)(configuration));
31
+ const stack = clientStack.concat(this.middlewareStack);
32
+ const { logger } = configuration;
33
+ const clientName = "S3ControlClient";
34
+ const commandName = "UpdateStorageLensGroupCommand";
35
+ const handlerExecutionContext = {
36
+ logger,
37
+ clientName,
38
+ commandName,
39
+ inputFilterSensitiveLog: (_) => _,
40
+ outputFilterSensitiveLog: (_) => _,
41
+ [types_1.SMITHY_CONTEXT_KEY]: {
42
+ service: "AWSS3ControlServiceV20180820",
43
+ operation: "UpdateStorageLensGroup",
44
+ },
45
+ };
46
+ const { requestHandler } = configuration;
47
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
48
+ }
49
+ serialize(input, context) {
50
+ return (0, Aws_restXml_1.se_UpdateStorageLensGroupCommand)(input, context);
51
+ }
52
+ deserialize(output, context) {
53
+ return (0, Aws_restXml_1.de_UpdateStorageLensGroupCommand)(output, context);
54
+ }
55
+ }
56
+ exports.UpdateStorageLensGroupCommand = UpdateStorageLensGroupCommand;
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./CreateAccessPointForObjectLambdaCommand"), expor
6
6
  tslib_1.__exportStar(require("./CreateBucketCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateJobCommand"), exports);
8
8
  tslib_1.__exportStar(require("./CreateMultiRegionAccessPointCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateStorageLensGroupCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteAccessPointCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteAccessPointForObjectLambdaCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeleteAccessPointPolicyCommand"), exports);
@@ -20,6 +21,7 @@ tslib_1.__exportStar(require("./DeleteMultiRegionAccessPointCommand"), exports);
20
21
  tslib_1.__exportStar(require("./DeletePublicAccessBlockCommand"), exports);
21
22
  tslib_1.__exportStar(require("./DeleteStorageLensConfigurationCommand"), exports);
22
23
  tslib_1.__exportStar(require("./DeleteStorageLensConfigurationTaggingCommand"), exports);
24
+ tslib_1.__exportStar(require("./DeleteStorageLensGroupCommand"), exports);
23
25
  tslib_1.__exportStar(require("./DescribeJobCommand"), exports);
24
26
  tslib_1.__exportStar(require("./DescribeMultiRegionAccessPointOperationCommand"), exports);
25
27
  tslib_1.__exportStar(require("./GetAccessPointCommand"), exports);
@@ -43,12 +45,15 @@ tslib_1.__exportStar(require("./GetMultiRegionAccessPointRoutesCommand"), export
43
45
  tslib_1.__exportStar(require("./GetPublicAccessBlockCommand"), exports);
44
46
  tslib_1.__exportStar(require("./GetStorageLensConfigurationCommand"), exports);
45
47
  tslib_1.__exportStar(require("./GetStorageLensConfigurationTaggingCommand"), exports);
48
+ tslib_1.__exportStar(require("./GetStorageLensGroupCommand"), exports);
46
49
  tslib_1.__exportStar(require("./ListAccessPointsCommand"), exports);
47
50
  tslib_1.__exportStar(require("./ListAccessPointsForObjectLambdaCommand"), exports);
48
51
  tslib_1.__exportStar(require("./ListJobsCommand"), exports);
49
52
  tslib_1.__exportStar(require("./ListMultiRegionAccessPointsCommand"), exports);
50
53
  tslib_1.__exportStar(require("./ListRegionalBucketsCommand"), exports);
51
54
  tslib_1.__exportStar(require("./ListStorageLensConfigurationsCommand"), exports);
55
+ tslib_1.__exportStar(require("./ListStorageLensGroupsCommand"), exports);
56
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
52
57
  tslib_1.__exportStar(require("./PutAccessPointConfigurationForObjectLambdaCommand"), exports);
53
58
  tslib_1.__exportStar(require("./PutAccessPointPolicyCommand"), exports);
54
59
  tslib_1.__exportStar(require("./PutAccessPointPolicyForObjectLambdaCommand"), exports);
@@ -63,5 +68,8 @@ tslib_1.__exportStar(require("./PutPublicAccessBlockCommand"), exports);
63
68
  tslib_1.__exportStar(require("./PutStorageLensConfigurationCommand"), exports);
64
69
  tslib_1.__exportStar(require("./PutStorageLensConfigurationTaggingCommand"), exports);
65
70
  tslib_1.__exportStar(require("./SubmitMultiRegionAccessPointRoutesCommand"), exports);
71
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
72
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
66
73
  tslib_1.__exportStar(require("./UpdateJobPriorityCommand"), exports);
67
74
  tslib_1.__exportStar(require("./UpdateJobStatusCommand"), exports);
75
+ tslib_1.__exportStar(require("./UpdateStorageLensGroupCommand"), exports);
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListStorageLensGroups = void 0;
4
+ const ListStorageLensGroupsCommand_1 = require("../commands/ListStorageLensGroupsCommand");
5
+ const S3ControlClient_1 = require("../S3ControlClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListStorageLensGroupsCommand_1.ListStorageLensGroupsCommand(input), ...args);
8
+ };
9
+ async function* paginateListStorageLensGroups(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ if (config.client instanceof S3ControlClient_1.S3ControlClient) {
16
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
+ }
18
+ else {
19
+ throw new Error("Invalid client, expected S3Control | S3ControlClient");
20
+ }
21
+ yield page;
22
+ const prevToken = token;
23
+ token = page.NextToken;
24
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
+ }
26
+ return undefined;
27
+ }
28
+ exports.paginateListStorageLensGroups = paginateListStorageLensGroups;
@@ -8,3 +8,4 @@ tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListMultiRegionAccessPointsPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./ListRegionalBucketsPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./ListStorageLensConfigurationsPaginator"), exports);
11
+ tslib_1.__exportStar(require("./ListStorageLensGroupsPaginator"), exports);