@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
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_PutAccessPointPolicyCommand = exports.se_PutAccessPointConfigurationForObjectLambdaCommand = exports.se_ListStorageLensConfigurationsCommand = exports.se_ListRegionalBucketsCommand = exports.se_ListMultiRegionAccessPointsCommand = exports.se_ListJobsCommand = exports.se_ListAccessPointsForObjectLambdaCommand = exports.se_ListAccessPointsCommand = exports.se_GetStorageLensConfigurationTaggingCommand = exports.se_GetStorageLensConfigurationCommand = exports.se_GetPublicAccessBlockCommand = exports.se_GetMultiRegionAccessPointRoutesCommand = exports.se_GetMultiRegionAccessPointPolicyStatusCommand = exports.se_GetMultiRegionAccessPointPolicyCommand = exports.se_GetMultiRegionAccessPointCommand = exports.se_GetJobTaggingCommand = exports.se_GetBucketVersioningCommand = exports.se_GetBucketTaggingCommand = exports.se_GetBucketReplicationCommand = exports.se_GetBucketPolicyCommand = exports.se_GetBucketLifecycleConfigurationCommand = exports.se_GetBucketCommand = exports.se_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.se_GetAccessPointPolicyStatusCommand = exports.se_GetAccessPointPolicyForObjectLambdaCommand = exports.se_GetAccessPointPolicyCommand = exports.se_GetAccessPointForObjectLambdaCommand = exports.se_GetAccessPointConfigurationForObjectLambdaCommand = exports.se_GetAccessPointCommand = exports.se_DescribeMultiRegionAccessPointOperationCommand = exports.se_DescribeJobCommand = exports.se_DeleteStorageLensConfigurationTaggingCommand = exports.se_DeleteStorageLensConfigurationCommand = exports.se_DeletePublicAccessBlockCommand = exports.se_DeleteMultiRegionAccessPointCommand = exports.se_DeleteJobTaggingCommand = exports.se_DeleteBucketTaggingCommand = exports.se_DeleteBucketReplicationCommand = exports.se_DeleteBucketPolicyCommand = exports.se_DeleteBucketLifecycleConfigurationCommand = exports.se_DeleteBucketCommand = exports.se_DeleteAccessPointPolicyForObjectLambdaCommand = exports.se_DeleteAccessPointPolicyCommand = exports.se_DeleteAccessPointForObjectLambdaCommand = exports.se_DeleteAccessPointCommand = exports.se_CreateMultiRegionAccessPointCommand = exports.se_CreateJobCommand = exports.se_CreateBucketCommand = exports.se_CreateAccessPointForObjectLambdaCommand = exports.se_CreateAccessPointCommand = void 0;
4
- exports.de_GetMultiRegionAccessPointCommand = exports.de_GetJobTaggingCommand = exports.de_GetBucketVersioningCommand = exports.de_GetBucketTaggingCommand = exports.de_GetBucketReplicationCommand = exports.de_GetBucketPolicyCommand = exports.de_GetBucketLifecycleConfigurationCommand = exports.de_GetBucketCommand = exports.de_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.de_GetAccessPointPolicyStatusCommand = exports.de_GetAccessPointPolicyForObjectLambdaCommand = exports.de_GetAccessPointPolicyCommand = exports.de_GetAccessPointForObjectLambdaCommand = exports.de_GetAccessPointConfigurationForObjectLambdaCommand = exports.de_GetAccessPointCommand = exports.de_DescribeMultiRegionAccessPointOperationCommand = exports.de_DescribeJobCommand = exports.de_DeleteStorageLensConfigurationTaggingCommand = exports.de_DeleteStorageLensConfigurationCommand = exports.de_DeletePublicAccessBlockCommand = exports.de_DeleteMultiRegionAccessPointCommand = exports.de_DeleteJobTaggingCommand = exports.de_DeleteBucketTaggingCommand = exports.de_DeleteBucketReplicationCommand = exports.de_DeleteBucketPolicyCommand = exports.de_DeleteBucketLifecycleConfigurationCommand = exports.de_DeleteBucketCommand = exports.de_DeleteAccessPointPolicyForObjectLambdaCommand = exports.de_DeleteAccessPointPolicyCommand = exports.de_DeleteAccessPointForObjectLambdaCommand = exports.de_DeleteAccessPointCommand = exports.de_CreateMultiRegionAccessPointCommand = exports.de_CreateJobCommand = exports.de_CreateBucketCommand = exports.de_CreateAccessPointForObjectLambdaCommand = exports.de_CreateAccessPointCommand = exports.se_UpdateJobStatusCommand = exports.se_UpdateJobPriorityCommand = exports.se_SubmitMultiRegionAccessPointRoutesCommand = exports.se_PutStorageLensConfigurationTaggingCommand = exports.se_PutStorageLensConfigurationCommand = exports.se_PutPublicAccessBlockCommand = exports.se_PutMultiRegionAccessPointPolicyCommand = exports.se_PutJobTaggingCommand = exports.se_PutBucketVersioningCommand = exports.se_PutBucketTaggingCommand = exports.se_PutBucketReplicationCommand = exports.se_PutBucketPolicyCommand = exports.se_PutBucketLifecycleConfigurationCommand = exports.se_PutAccessPointPolicyForObjectLambdaCommand = void 0;
5
- exports.de_UpdateJobStatusCommand = exports.de_UpdateJobPriorityCommand = exports.de_SubmitMultiRegionAccessPointRoutesCommand = exports.de_PutStorageLensConfigurationTaggingCommand = exports.de_PutStorageLensConfigurationCommand = exports.de_PutPublicAccessBlockCommand = exports.de_PutMultiRegionAccessPointPolicyCommand = exports.de_PutJobTaggingCommand = exports.de_PutBucketVersioningCommand = exports.de_PutBucketTaggingCommand = exports.de_PutBucketReplicationCommand = exports.de_PutBucketPolicyCommand = exports.de_PutBucketLifecycleConfigurationCommand = exports.de_PutAccessPointPolicyForObjectLambdaCommand = exports.de_PutAccessPointPolicyCommand = exports.de_PutAccessPointConfigurationForObjectLambdaCommand = exports.de_ListStorageLensConfigurationsCommand = exports.de_ListRegionalBucketsCommand = exports.de_ListMultiRegionAccessPointsCommand = exports.de_ListJobsCommand = exports.de_ListAccessPointsForObjectLambdaCommand = exports.de_ListAccessPointsCommand = exports.de_GetStorageLensConfigurationTaggingCommand = exports.de_GetStorageLensConfigurationCommand = exports.de_GetPublicAccessBlockCommand = exports.de_GetMultiRegionAccessPointRoutesCommand = exports.de_GetMultiRegionAccessPointPolicyStatusCommand = exports.de_GetMultiRegionAccessPointPolicyCommand = void 0;
3
+ exports.se_ListRegionalBucketsCommand = exports.se_ListMultiRegionAccessPointsCommand = exports.se_ListJobsCommand = exports.se_ListAccessPointsForObjectLambdaCommand = exports.se_ListAccessPointsCommand = exports.se_GetStorageLensGroupCommand = exports.se_GetStorageLensConfigurationTaggingCommand = exports.se_GetStorageLensConfigurationCommand = exports.se_GetPublicAccessBlockCommand = exports.se_GetMultiRegionAccessPointRoutesCommand = exports.se_GetMultiRegionAccessPointPolicyStatusCommand = exports.se_GetMultiRegionAccessPointPolicyCommand = exports.se_GetMultiRegionAccessPointCommand = exports.se_GetJobTaggingCommand = exports.se_GetBucketVersioningCommand = exports.se_GetBucketTaggingCommand = exports.se_GetBucketReplicationCommand = exports.se_GetBucketPolicyCommand = exports.se_GetBucketLifecycleConfigurationCommand = exports.se_GetBucketCommand = exports.se_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.se_GetAccessPointPolicyStatusCommand = exports.se_GetAccessPointPolicyForObjectLambdaCommand = exports.se_GetAccessPointPolicyCommand = exports.se_GetAccessPointForObjectLambdaCommand = exports.se_GetAccessPointConfigurationForObjectLambdaCommand = exports.se_GetAccessPointCommand = exports.se_DescribeMultiRegionAccessPointOperationCommand = exports.se_DescribeJobCommand = exports.se_DeleteStorageLensGroupCommand = exports.se_DeleteStorageLensConfigurationTaggingCommand = exports.se_DeleteStorageLensConfigurationCommand = exports.se_DeletePublicAccessBlockCommand = exports.se_DeleteMultiRegionAccessPointCommand = exports.se_DeleteJobTaggingCommand = exports.se_DeleteBucketTaggingCommand = exports.se_DeleteBucketReplicationCommand = exports.se_DeleteBucketPolicyCommand = exports.se_DeleteBucketLifecycleConfigurationCommand = exports.se_DeleteBucketCommand = exports.se_DeleteAccessPointPolicyForObjectLambdaCommand = exports.se_DeleteAccessPointPolicyCommand = exports.se_DeleteAccessPointForObjectLambdaCommand = exports.se_DeleteAccessPointCommand = exports.se_CreateStorageLensGroupCommand = exports.se_CreateMultiRegionAccessPointCommand = exports.se_CreateJobCommand = exports.se_CreateBucketCommand = exports.se_CreateAccessPointForObjectLambdaCommand = exports.se_CreateAccessPointCommand = void 0;
4
+ exports.de_GetAccessPointPolicyForObjectLambdaCommand = exports.de_GetAccessPointPolicyCommand = exports.de_GetAccessPointForObjectLambdaCommand = exports.de_GetAccessPointConfigurationForObjectLambdaCommand = exports.de_GetAccessPointCommand = exports.de_DescribeMultiRegionAccessPointOperationCommand = exports.de_DescribeJobCommand = exports.de_DeleteStorageLensGroupCommand = exports.de_DeleteStorageLensConfigurationTaggingCommand = exports.de_DeleteStorageLensConfigurationCommand = exports.de_DeletePublicAccessBlockCommand = exports.de_DeleteMultiRegionAccessPointCommand = exports.de_DeleteJobTaggingCommand = exports.de_DeleteBucketTaggingCommand = exports.de_DeleteBucketReplicationCommand = exports.de_DeleteBucketPolicyCommand = exports.de_DeleteBucketLifecycleConfigurationCommand = exports.de_DeleteBucketCommand = exports.de_DeleteAccessPointPolicyForObjectLambdaCommand = exports.de_DeleteAccessPointPolicyCommand = exports.de_DeleteAccessPointForObjectLambdaCommand = exports.de_DeleteAccessPointCommand = exports.de_CreateStorageLensGroupCommand = exports.de_CreateMultiRegionAccessPointCommand = exports.de_CreateJobCommand = exports.de_CreateBucketCommand = exports.de_CreateAccessPointForObjectLambdaCommand = exports.de_CreateAccessPointCommand = exports.se_UpdateStorageLensGroupCommand = exports.se_UpdateJobStatusCommand = exports.se_UpdateJobPriorityCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitMultiRegionAccessPointRoutesCommand = exports.se_PutStorageLensConfigurationTaggingCommand = exports.se_PutStorageLensConfigurationCommand = exports.se_PutPublicAccessBlockCommand = exports.se_PutMultiRegionAccessPointPolicyCommand = exports.se_PutJobTaggingCommand = exports.se_PutBucketVersioningCommand = exports.se_PutBucketTaggingCommand = exports.se_PutBucketReplicationCommand = exports.se_PutBucketPolicyCommand = exports.se_PutBucketLifecycleConfigurationCommand = exports.se_PutAccessPointPolicyForObjectLambdaCommand = exports.se_PutAccessPointPolicyCommand = exports.se_PutAccessPointConfigurationForObjectLambdaCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageLensGroupsCommand = exports.se_ListStorageLensConfigurationsCommand = void 0;
5
+ exports.de_UpdateStorageLensGroupCommand = exports.de_UpdateJobStatusCommand = exports.de_UpdateJobPriorityCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitMultiRegionAccessPointRoutesCommand = exports.de_PutStorageLensConfigurationTaggingCommand = exports.de_PutStorageLensConfigurationCommand = exports.de_PutPublicAccessBlockCommand = exports.de_PutMultiRegionAccessPointPolicyCommand = exports.de_PutJobTaggingCommand = exports.de_PutBucketVersioningCommand = exports.de_PutBucketTaggingCommand = exports.de_PutBucketReplicationCommand = exports.de_PutBucketPolicyCommand = exports.de_PutBucketLifecycleConfigurationCommand = exports.de_PutAccessPointPolicyForObjectLambdaCommand = exports.de_PutAccessPointPolicyCommand = exports.de_PutAccessPointConfigurationForObjectLambdaCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageLensGroupsCommand = exports.de_ListStorageLensConfigurationsCommand = exports.de_ListRegionalBucketsCommand = exports.de_ListMultiRegionAccessPointsCommand = exports.de_ListJobsCommand = exports.de_ListAccessPointsForObjectLambdaCommand = exports.de_ListAccessPointsCommand = exports.de_GetStorageLensGroupCommand = exports.de_GetStorageLensConfigurationTaggingCommand = exports.de_GetStorageLensConfigurationCommand = exports.de_GetPublicAccessBlockCommand = exports.de_GetMultiRegionAccessPointRoutesCommand = exports.de_GetMultiRegionAccessPointPolicyStatusCommand = exports.de_GetMultiRegionAccessPointPolicyCommand = exports.de_GetMultiRegionAccessPointCommand = exports.de_GetJobTaggingCommand = exports.de_GetBucketVersioningCommand = exports.de_GetBucketTaggingCommand = exports.de_GetBucketReplicationCommand = exports.de_GetBucketPolicyCommand = exports.de_GetBucketLifecycleConfigurationCommand = exports.de_GetBucketCommand = exports.de_GetAccessPointPolicyStatusForObjectLambdaCommand = exports.de_GetAccessPointPolicyStatusCommand = void 0;
6
6
  const xml_builder_1 = require("@aws-sdk/xml-builder");
7
7
  const protocol_http_1 = require("@smithy/protocol-http");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -269,6 +269,52 @@ const se_CreateMultiRegionAccessPointCommand = async (input, context) => {
269
269
  });
270
270
  };
271
271
  exports.se_CreateMultiRegionAccessPointCommand = se_CreateMultiRegionAccessPointCommand;
272
+ const se_CreateStorageLensGroupCommand = async (input, context) => {
273
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
275
+ "content-type": "application/xml",
276
+ "x-amz-account-id": input.AccountId,
277
+ });
278
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup";
279
+ let body;
280
+ body = '<?xml version="1.0" encoding="UTF-8"?>';
281
+ const bodyNode = new xml_builder_1.XmlNode("CreateStorageLensGroupRequest");
282
+ bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
283
+ if (input.StorageLensGroup !== undefined) {
284
+ const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup");
285
+ bodyNode.addChildNode(node);
286
+ }
287
+ if (input.Tags !== undefined) {
288
+ const nodes = se_TagList(input.Tags, context);
289
+ const containerNode = new xml_builder_1.XmlNode("Tags");
290
+ nodes.map((node) => {
291
+ containerNode.addChildNode(node);
292
+ });
293
+ bodyNode.addChildNode(containerNode);
294
+ }
295
+ body += bodyNode.toString();
296
+ let { hostname: resolvedHostname } = await context.endpoint();
297
+ if (context.disableHostPrefix !== true) {
298
+ resolvedHostname = "{AccountId}." + resolvedHostname;
299
+ if (input.AccountId === undefined) {
300
+ throw new Error("Empty value provided for input host prefix: AccountId.");
301
+ }
302
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
303
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
304
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
305
+ }
306
+ }
307
+ return new protocol_http_1.HttpRequest({
308
+ protocol,
309
+ hostname: resolvedHostname,
310
+ port,
311
+ method: "POST",
312
+ headers,
313
+ path: resolvedPath,
314
+ body,
315
+ });
316
+ };
317
+ exports.se_CreateStorageLensGroupCommand = se_CreateStorageLensGroupCommand;
272
318
  const se_DeleteAccessPointCommand = async (input, context) => {
273
319
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
320
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -707,6 +753,36 @@ const se_DeleteStorageLensConfigurationTaggingCommand = async (input, context) =
707
753
  });
708
754
  };
709
755
  exports.se_DeleteStorageLensConfigurationTaggingCommand = se_DeleteStorageLensConfigurationTaggingCommand;
756
+ const se_DeleteStorageLensGroupCommand = async (input, context) => {
757
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
758
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
759
+ "x-amz-account-id": input.AccountId,
760
+ });
761
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
762
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
763
+ let body;
764
+ let { hostname: resolvedHostname } = await context.endpoint();
765
+ if (context.disableHostPrefix !== true) {
766
+ resolvedHostname = "{AccountId}." + resolvedHostname;
767
+ if (input.AccountId === undefined) {
768
+ throw new Error("Empty value provided for input host prefix: AccountId.");
769
+ }
770
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
771
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
772
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
773
+ }
774
+ }
775
+ return new protocol_http_1.HttpRequest({
776
+ protocol,
777
+ hostname: resolvedHostname,
778
+ port,
779
+ method: "DELETE",
780
+ headers,
781
+ path: resolvedPath,
782
+ body,
783
+ });
784
+ };
785
+ exports.se_DeleteStorageLensGroupCommand = se_DeleteStorageLensGroupCommand;
710
786
  const se_DescribeJobCommand = async (input, context) => {
711
787
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
712
788
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -1405,6 +1481,36 @@ const se_GetStorageLensConfigurationTaggingCommand = async (input, context) => {
1405
1481
  });
1406
1482
  };
1407
1483
  exports.se_GetStorageLensConfigurationTaggingCommand = se_GetStorageLensConfigurationTaggingCommand;
1484
+ const se_GetStorageLensGroupCommand = async (input, context) => {
1485
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1486
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1487
+ "x-amz-account-id": input.AccountId,
1488
+ });
1489
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
1490
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
1491
+ let body;
1492
+ let { hostname: resolvedHostname } = await context.endpoint();
1493
+ if (context.disableHostPrefix !== true) {
1494
+ resolvedHostname = "{AccountId}." + resolvedHostname;
1495
+ if (input.AccountId === undefined) {
1496
+ throw new Error("Empty value provided for input host prefix: AccountId.");
1497
+ }
1498
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
1499
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1500
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1501
+ }
1502
+ }
1503
+ return new protocol_http_1.HttpRequest({
1504
+ protocol,
1505
+ hostname: resolvedHostname,
1506
+ port,
1507
+ method: "GET",
1508
+ headers,
1509
+ path: resolvedPath,
1510
+ body,
1511
+ });
1512
+ };
1513
+ exports.se_GetStorageLensGroupCommand = se_GetStorageLensGroupCommand;
1408
1514
  const se_ListAccessPointsCommand = async (input, context) => {
1409
1515
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
1516
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -1611,6 +1717,69 @@ const se_ListStorageLensConfigurationsCommand = async (input, context) => {
1611
1717
  });
1612
1718
  };
1613
1719
  exports.se_ListStorageLensConfigurationsCommand = se_ListStorageLensConfigurationsCommand;
1720
+ const se_ListStorageLensGroupsCommand = async (input, context) => {
1721
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1722
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1723
+ "x-amz-account-id": input.AccountId,
1724
+ });
1725
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup";
1726
+ const query = (0, smithy_client_1.map)({
1727
+ nextToken: [, input.NextToken],
1728
+ });
1729
+ let body;
1730
+ let { hostname: resolvedHostname } = await context.endpoint();
1731
+ if (context.disableHostPrefix !== true) {
1732
+ resolvedHostname = "{AccountId}." + resolvedHostname;
1733
+ if (input.AccountId === undefined) {
1734
+ throw new Error("Empty value provided for input host prefix: AccountId.");
1735
+ }
1736
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
1737
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1738
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1739
+ }
1740
+ }
1741
+ return new protocol_http_1.HttpRequest({
1742
+ protocol,
1743
+ hostname: resolvedHostname,
1744
+ port,
1745
+ method: "GET",
1746
+ headers,
1747
+ path: resolvedPath,
1748
+ query,
1749
+ body,
1750
+ });
1751
+ };
1752
+ exports.se_ListStorageLensGroupsCommand = se_ListStorageLensGroupsCommand;
1753
+ const se_ListTagsForResourceCommand = async (input, context) => {
1754
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1755
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1756
+ "x-amz-account-id": input.AccountId,
1757
+ });
1758
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}";
1759
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn+}", true);
1760
+ let body;
1761
+ let { hostname: resolvedHostname } = await context.endpoint();
1762
+ if (context.disableHostPrefix !== true) {
1763
+ resolvedHostname = "{AccountId}." + resolvedHostname;
1764
+ if (input.AccountId === undefined) {
1765
+ throw new Error("Empty value provided for input host prefix: AccountId.");
1766
+ }
1767
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
1768
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1769
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1770
+ }
1771
+ }
1772
+ return new protocol_http_1.HttpRequest({
1773
+ protocol,
1774
+ hostname: resolvedHostname,
1775
+ port,
1776
+ method: "GET",
1777
+ headers,
1778
+ path: resolvedPath,
1779
+ body,
1780
+ });
1781
+ };
1782
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1614
1783
  const se_PutAccessPointConfigurationForObjectLambdaCommand = async (input, context) => {
1615
1784
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1616
1785
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -2201,6 +2370,86 @@ const se_SubmitMultiRegionAccessPointRoutesCommand = async (input, context) => {
2201
2370
  });
2202
2371
  };
2203
2372
  exports.se_SubmitMultiRegionAccessPointRoutesCommand = se_SubmitMultiRegionAccessPointRoutesCommand;
2373
+ const se_TagResourceCommand = async (input, context) => {
2374
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2375
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2376
+ "content-type": "application/xml",
2377
+ "x-amz-account-id": input.AccountId,
2378
+ });
2379
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}";
2380
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn+}", true);
2381
+ let body;
2382
+ body = '<?xml version="1.0" encoding="UTF-8"?>';
2383
+ const bodyNode = new xml_builder_1.XmlNode("TagResourceRequest");
2384
+ bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
2385
+ if (input.Tags !== undefined) {
2386
+ const nodes = se_TagList(input.Tags, context);
2387
+ const containerNode = new xml_builder_1.XmlNode("Tags");
2388
+ nodes.map((node) => {
2389
+ containerNode.addChildNode(node);
2390
+ });
2391
+ bodyNode.addChildNode(containerNode);
2392
+ }
2393
+ body += bodyNode.toString();
2394
+ let { hostname: resolvedHostname } = await context.endpoint();
2395
+ if (context.disableHostPrefix !== true) {
2396
+ resolvedHostname = "{AccountId}." + resolvedHostname;
2397
+ if (input.AccountId === undefined) {
2398
+ throw new Error("Empty value provided for input host prefix: AccountId.");
2399
+ }
2400
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
2401
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2402
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2403
+ }
2404
+ }
2405
+ return new protocol_http_1.HttpRequest({
2406
+ protocol,
2407
+ hostname: resolvedHostname,
2408
+ port,
2409
+ method: "POST",
2410
+ headers,
2411
+ path: resolvedPath,
2412
+ body,
2413
+ });
2414
+ };
2415
+ exports.se_TagResourceCommand = se_TagResourceCommand;
2416
+ const se_UntagResourceCommand = async (input, context) => {
2417
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2418
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2419
+ "x-amz-account-id": input.AccountId,
2420
+ });
2421
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/tags/{ResourceArn+}";
2422
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn+}", true);
2423
+ const query = (0, smithy_client_1.map)({
2424
+ tagKeys: [
2425
+ (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
2426
+ () => (input.TagKeys || []).map((_entry) => _entry),
2427
+ ],
2428
+ });
2429
+ let body;
2430
+ let { hostname: resolvedHostname } = await context.endpoint();
2431
+ if (context.disableHostPrefix !== true) {
2432
+ resolvedHostname = "{AccountId}." + resolvedHostname;
2433
+ if (input.AccountId === undefined) {
2434
+ throw new Error("Empty value provided for input host prefix: AccountId.");
2435
+ }
2436
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
2437
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2438
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2439
+ }
2440
+ }
2441
+ return new protocol_http_1.HttpRequest({
2442
+ protocol,
2443
+ hostname: resolvedHostname,
2444
+ port,
2445
+ method: "DELETE",
2446
+ headers,
2447
+ path: resolvedPath,
2448
+ query,
2449
+ body,
2450
+ });
2451
+ };
2452
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
2204
2453
  const se_UpdateJobPriorityCommand = async (input, context) => {
2205
2454
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2206
2455
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
@@ -2270,6 +2519,45 @@ const se_UpdateJobStatusCommand = async (input, context) => {
2270
2519
  });
2271
2520
  };
2272
2521
  exports.se_UpdateJobStatusCommand = se_UpdateJobStatusCommand;
2522
+ const se_UpdateStorageLensGroupCommand = async (input, context) => {
2523
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2524
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
2525
+ "content-type": "application/xml",
2526
+ "x-amz-account-id": input.AccountId,
2527
+ });
2528
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20180820/storagelensgroup/{Name}";
2529
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
2530
+ let body;
2531
+ body = '<?xml version="1.0" encoding="UTF-8"?>';
2532
+ const bodyNode = new xml_builder_1.XmlNode("UpdateStorageLensGroupRequest");
2533
+ bodyNode.addAttribute("xmlns", "http://awss3control.amazonaws.com/doc/2018-08-20/");
2534
+ if (input.StorageLensGroup !== undefined) {
2535
+ const node = se_StorageLensGroup(input.StorageLensGroup, context).withName("StorageLensGroup");
2536
+ bodyNode.addChildNode(node);
2537
+ }
2538
+ body += bodyNode.toString();
2539
+ let { hostname: resolvedHostname } = await context.endpoint();
2540
+ if (context.disableHostPrefix !== true) {
2541
+ resolvedHostname = "{AccountId}." + resolvedHostname;
2542
+ if (input.AccountId === undefined) {
2543
+ throw new Error("Empty value provided for input host prefix: AccountId.");
2544
+ }
2545
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
2546
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2547
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2548
+ }
2549
+ }
2550
+ return new protocol_http_1.HttpRequest({
2551
+ protocol,
2552
+ hostname: resolvedHostname,
2553
+ port,
2554
+ method: "PUT",
2555
+ headers,
2556
+ path: resolvedPath,
2557
+ body,
2558
+ });
2559
+ };
2560
+ exports.se_UpdateStorageLensGroupCommand = se_UpdateStorageLensGroupCommand;
2273
2561
  const de_CreateAccessPointCommand = async (output, context) => {
2274
2562
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2275
2563
  return de_CreateAccessPointCommandError(output, context);
@@ -2436,6 +2724,30 @@ const de_CreateMultiRegionAccessPointCommandError = async (output, context) => {
2436
2724
  errorCode,
2437
2725
  });
2438
2726
  };
2727
+ const de_CreateStorageLensGroupCommand = async (output, context) => {
2728
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2729
+ return de_CreateStorageLensGroupCommandError(output, context);
2730
+ }
2731
+ const contents = (0, smithy_client_1.map)({
2732
+ $metadata: deserializeMetadata(output),
2733
+ });
2734
+ await (0, smithy_client_1.collectBody)(output.body, context);
2735
+ return contents;
2736
+ };
2737
+ exports.de_CreateStorageLensGroupCommand = de_CreateStorageLensGroupCommand;
2738
+ const de_CreateStorageLensGroupCommandError = async (output, context) => {
2739
+ const parsedOutput = {
2740
+ ...output,
2741
+ body: await parseErrorBody(output.body, context),
2742
+ };
2743
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
2744
+ const parsedBody = parsedOutput.body;
2745
+ return throwDefaultError({
2746
+ output,
2747
+ parsedBody: parsedBody.Error,
2748
+ errorCode,
2749
+ });
2750
+ };
2439
2751
  const de_DeleteAccessPointCommand = async (output, context) => {
2440
2752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2441
2753
  return de_DeleteAccessPointCommandError(output, context);
@@ -2787,6 +3099,30 @@ const de_DeleteStorageLensConfigurationTaggingCommandError = async (output, cont
2787
3099
  errorCode,
2788
3100
  });
2789
3101
  };
3102
+ const de_DeleteStorageLensGroupCommand = async (output, context) => {
3103
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3104
+ return de_DeleteStorageLensGroupCommandError(output, context);
3105
+ }
3106
+ const contents = (0, smithy_client_1.map)({
3107
+ $metadata: deserializeMetadata(output),
3108
+ });
3109
+ await (0, smithy_client_1.collectBody)(output.body, context);
3110
+ return contents;
3111
+ };
3112
+ exports.de_DeleteStorageLensGroupCommand = de_DeleteStorageLensGroupCommand;
3113
+ const de_DeleteStorageLensGroupCommandError = async (output, context) => {
3114
+ const parsedOutput = {
3115
+ ...output,
3116
+ body: await parseErrorBody(output.body, context),
3117
+ };
3118
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3119
+ const parsedBody = parsedOutput.body;
3120
+ return throwDefaultError({
3121
+ output,
3122
+ parsedBody: parsedBody.Error,
3123
+ errorCode,
3124
+ });
3125
+ };
2790
3126
  const de_DescribeJobCommand = async (output, context) => {
2791
3127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2792
3128
  return de_DescribeJobCommandError(output, context);
@@ -3503,6 +3839,31 @@ const de_GetStorageLensConfigurationTaggingCommandError = async (output, context
3503
3839
  errorCode,
3504
3840
  });
3505
3841
  };
3842
+ const de_GetStorageLensGroupCommand = async (output, context) => {
3843
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3844
+ return de_GetStorageLensGroupCommandError(output, context);
3845
+ }
3846
+ const contents = (0, smithy_client_1.map)({
3847
+ $metadata: deserializeMetadata(output),
3848
+ });
3849
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
3850
+ contents.StorageLensGroup = de_StorageLensGroup(data, context);
3851
+ return contents;
3852
+ };
3853
+ exports.de_GetStorageLensGroupCommand = de_GetStorageLensGroupCommand;
3854
+ const de_GetStorageLensGroupCommandError = async (output, context) => {
3855
+ const parsedOutput = {
3856
+ ...output,
3857
+ body: await parseErrorBody(output.body, context),
3858
+ };
3859
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
3860
+ const parsedBody = parsedOutput.body;
3861
+ return throwDefaultError({
3862
+ output,
3863
+ parsedBody: parsedBody.Error,
3864
+ errorCode,
3865
+ });
3866
+ };
3506
3867
  const de_ListAccessPointsCommand = async (output, context) => {
3507
3868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3508
3869
  return de_ListAccessPointsCommandError(output, context);
@@ -3714,6 +4075,69 @@ const de_ListStorageLensConfigurationsCommandError = async (output, context) =>
3714
4075
  errorCode,
3715
4076
  });
3716
4077
  };
4078
+ const de_ListStorageLensGroupsCommand = async (output, context) => {
4079
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4080
+ return de_ListStorageLensGroupsCommandError(output, context);
4081
+ }
4082
+ const contents = (0, smithy_client_1.map)({
4083
+ $metadata: deserializeMetadata(output),
4084
+ });
4085
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4086
+ if (data["NextToken"] !== undefined) {
4087
+ contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
4088
+ }
4089
+ if (data.StorageLensGroupList === "") {
4090
+ contents.StorageLensGroupList = [];
4091
+ }
4092
+ else if (data["StorageLensGroupList"] !== undefined) {
4093
+ contents.StorageLensGroupList = de_StorageLensGroupList((0, smithy_client_1.getArrayIfSingleItem)(data["StorageLensGroupList"]), context);
4094
+ }
4095
+ return contents;
4096
+ };
4097
+ exports.de_ListStorageLensGroupsCommand = de_ListStorageLensGroupsCommand;
4098
+ const de_ListStorageLensGroupsCommandError = async (output, context) => {
4099
+ const parsedOutput = {
4100
+ ...output,
4101
+ body: await parseErrorBody(output.body, context),
4102
+ };
4103
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4104
+ const parsedBody = parsedOutput.body;
4105
+ return throwDefaultError({
4106
+ output,
4107
+ parsedBody: parsedBody.Error,
4108
+ errorCode,
4109
+ });
4110
+ };
4111
+ const de_ListTagsForResourceCommand = async (output, context) => {
4112
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4113
+ return de_ListTagsForResourceCommandError(output, context);
4114
+ }
4115
+ const contents = (0, smithy_client_1.map)({
4116
+ $metadata: deserializeMetadata(output),
4117
+ });
4118
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4119
+ if (data.Tags === "") {
4120
+ contents.Tags = [];
4121
+ }
4122
+ else if (data["Tags"] !== undefined && data["Tags"]["Tag"] !== undefined) {
4123
+ contents.Tags = de_TagList((0, smithy_client_1.getArrayIfSingleItem)(data["Tags"]["Tag"]), context);
4124
+ }
4125
+ return contents;
4126
+ };
4127
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
4128
+ const de_ListTagsForResourceCommandError = async (output, context) => {
4129
+ const parsedOutput = {
4130
+ ...output,
4131
+ body: await parseErrorBody(output.body, context),
4132
+ };
4133
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4134
+ const parsedBody = parsedOutput.body;
4135
+ return throwDefaultError({
4136
+ output,
4137
+ parsedBody: parsedBody.Error,
4138
+ errorCode,
4139
+ });
4140
+ };
3717
4141
  const de_PutAccessPointConfigurationForObjectLambdaCommand = async (output, context) => {
3718
4142
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3719
4143
  return de_PutAccessPointConfigurationForObjectLambdaCommandError(output, context);
@@ -4068,6 +4492,54 @@ const de_SubmitMultiRegionAccessPointRoutesCommandError = async (output, context
4068
4492
  errorCode,
4069
4493
  });
4070
4494
  };
4495
+ const de_TagResourceCommand = async (output, context) => {
4496
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4497
+ return de_TagResourceCommandError(output, context);
4498
+ }
4499
+ const contents = (0, smithy_client_1.map)({
4500
+ $metadata: deserializeMetadata(output),
4501
+ });
4502
+ await (0, smithy_client_1.collectBody)(output.body, context);
4503
+ return contents;
4504
+ };
4505
+ exports.de_TagResourceCommand = de_TagResourceCommand;
4506
+ const de_TagResourceCommandError = async (output, context) => {
4507
+ const parsedOutput = {
4508
+ ...output,
4509
+ body: await parseErrorBody(output.body, context),
4510
+ };
4511
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4512
+ const parsedBody = parsedOutput.body;
4513
+ return throwDefaultError({
4514
+ output,
4515
+ parsedBody: parsedBody.Error,
4516
+ errorCode,
4517
+ });
4518
+ };
4519
+ const de_UntagResourceCommand = async (output, context) => {
4520
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4521
+ return de_UntagResourceCommandError(output, context);
4522
+ }
4523
+ const contents = (0, smithy_client_1.map)({
4524
+ $metadata: deserializeMetadata(output),
4525
+ });
4526
+ await (0, smithy_client_1.collectBody)(output.body, context);
4527
+ return contents;
4528
+ };
4529
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
4530
+ const de_UntagResourceCommandError = async (output, context) => {
4531
+ const parsedOutput = {
4532
+ ...output,
4533
+ body: await parseErrorBody(output.body, context),
4534
+ };
4535
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4536
+ const parsedBody = parsedOutput.body;
4537
+ return throwDefaultError({
4538
+ output,
4539
+ parsedBody: parsedBody.Error,
4540
+ errorCode,
4541
+ });
4542
+ };
4071
4543
  const de_UpdateJobPriorityCommand = async (output, context) => {
4072
4544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4073
4545
  return de_UpdateJobPriorityCommandError(output, context);
@@ -4164,6 +4636,30 @@ const de_UpdateJobStatusCommandError = async (output, context) => {
4164
4636
  });
4165
4637
  }
4166
4638
  };
4639
+ const de_UpdateStorageLensGroupCommand = async (output, context) => {
4640
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4641
+ return de_UpdateStorageLensGroupCommandError(output, context);
4642
+ }
4643
+ const contents = (0, smithy_client_1.map)({
4644
+ $metadata: deserializeMetadata(output),
4645
+ });
4646
+ await (0, smithy_client_1.collectBody)(output.body, context);
4647
+ return contents;
4648
+ };
4649
+ exports.de_UpdateStorageLensGroupCommand = de_UpdateStorageLensGroupCommand;
4650
+ const de_UpdateStorageLensGroupCommandError = async (output, context) => {
4651
+ const parsedOutput = {
4652
+ ...output,
4653
+ body: await parseErrorBody(output.body, context),
4654
+ };
4655
+ const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
4656
+ const parsedBody = parsedOutput.body;
4657
+ return throwDefaultError({
4658
+ output,
4659
+ parsedBody: parsedBody.Error,
4660
+ errorCode,
4661
+ });
4662
+ };
4167
4663
  const throwDefaultError = (0, smithy_client_1.withBaseException)(S3ControlServiceException_1.S3ControlServiceException);
4168
4664
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
4169
4665
  const contents = (0, smithy_client_1.map)({});
@@ -4341,6 +4837,10 @@ const se_AccountLevel = (input, context) => {
4341
4837
  const node = se_DetailedStatusCodesMetrics(input.DetailedStatusCodesMetrics, context).withName("DetailedStatusCodesMetrics");
4342
4838
  bodyNode.addChildNode(node);
4343
4839
  }
4840
+ if (input.StorageLensGroupLevel != null) {
4841
+ const node = se_StorageLensGroupLevel(input.StorageLensGroupLevel, context).withName("StorageLensGroupLevel");
4842
+ bodyNode.addChildNode(node);
4843
+ }
4344
4844
  return bodyNode;
4345
4845
  };
4346
4846
  const se_ActivityMetrics = (input, context) => {
@@ -4877,6 +5377,54 @@ const se_LifecycleRules = (input, context) => {
4877
5377
  return node.withName("Rule");
4878
5378
  });
4879
5379
  };
5380
+ const se_MatchAnyPrefix = (input, context) => {
5381
+ return input
5382
+ .filter((e) => e != null)
5383
+ .map((entry) => {
5384
+ const node = xml_builder_1.XmlNode.of("Prefix", entry);
5385
+ return node.withName("Prefix");
5386
+ });
5387
+ };
5388
+ const se_MatchAnySuffix = (input, context) => {
5389
+ return input
5390
+ .filter((e) => e != null)
5391
+ .map((entry) => {
5392
+ const node = xml_builder_1.XmlNode.of("Suffix", entry);
5393
+ return node.withName("Suffix");
5394
+ });
5395
+ };
5396
+ const se_MatchAnyTag = (input, context) => {
5397
+ return input
5398
+ .filter((e) => e != null)
5399
+ .map((entry) => {
5400
+ const node = se_S3Tag(entry, context);
5401
+ return node.withName("Tag");
5402
+ });
5403
+ };
5404
+ const se_MatchObjectAge = (input, context) => {
5405
+ const bodyNode = new xml_builder_1.XmlNode("MatchObjectAge");
5406
+ if (input.DaysGreaterThan != null) {
5407
+ const node = xml_builder_1.XmlNode.of("ObjectAgeValue", String(input.DaysGreaterThan)).withName("DaysGreaterThan");
5408
+ bodyNode.addChildNode(node);
5409
+ }
5410
+ if (input.DaysLessThan != null) {
5411
+ const node = xml_builder_1.XmlNode.of("ObjectAgeValue", String(input.DaysLessThan)).withName("DaysLessThan");
5412
+ bodyNode.addChildNode(node);
5413
+ }
5414
+ return bodyNode;
5415
+ };
5416
+ const se_MatchObjectSize = (input, context) => {
5417
+ const bodyNode = new xml_builder_1.XmlNode("MatchObjectSize");
5418
+ if (input.BytesGreaterThan != null) {
5419
+ const node = xml_builder_1.XmlNode.of("ObjectSizeValue", String(input.BytesGreaterThan)).withName("BytesGreaterThan");
5420
+ bodyNode.addChildNode(node);
5421
+ }
5422
+ if (input.BytesLessThan != null) {
5423
+ const node = xml_builder_1.XmlNode.of("ObjectSizeValue", String(input.BytesLessThan)).withName("BytesLessThan");
5424
+ bodyNode.addChildNode(node);
5425
+ }
5426
+ return bodyNode;
5427
+ };
4880
5428
  const se_Metrics = (input, context) => {
4881
5429
  const bodyNode = new xml_builder_1.XmlNode("Metrics");
4882
5430
  if (input.Status != null) {
@@ -5798,6 +6346,182 @@ const se_StorageLensDataExportEncryption = (input, context) => {
5798
6346
  }
5799
6347
  return bodyNode;
5800
6348
  };
6349
+ const se_StorageLensGroup = (input, context) => {
6350
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroup");
6351
+ if (input.Name != null) {
6352
+ const node = xml_builder_1.XmlNode.of("StorageLensGroupName", input.Name).withName("Name");
6353
+ bodyNode.addChildNode(node);
6354
+ }
6355
+ if (input.Filter != null) {
6356
+ const node = se_StorageLensGroupFilter(input.Filter, context).withName("Filter");
6357
+ bodyNode.addChildNode(node);
6358
+ }
6359
+ if (input.StorageLensGroupArn != null) {
6360
+ const node = xml_builder_1.XmlNode.of("StorageLensGroupArn", input.StorageLensGroupArn).withName("StorageLensGroupArn");
6361
+ bodyNode.addChildNode(node);
6362
+ }
6363
+ return bodyNode;
6364
+ };
6365
+ const se_StorageLensGroupAndOperator = (input, context) => {
6366
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroupAndOperator");
6367
+ if (input.MatchAnyPrefix != null) {
6368
+ const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context);
6369
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyPrefix");
6370
+ nodes.map((node) => {
6371
+ containerNode.addChildNode(node);
6372
+ });
6373
+ bodyNode.addChildNode(containerNode);
6374
+ }
6375
+ if (input.MatchAnySuffix != null) {
6376
+ const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context);
6377
+ const containerNode = new xml_builder_1.XmlNode("MatchAnySuffix");
6378
+ nodes.map((node) => {
6379
+ containerNode.addChildNode(node);
6380
+ });
6381
+ bodyNode.addChildNode(containerNode);
6382
+ }
6383
+ if (input.MatchAnyTag != null) {
6384
+ const nodes = se_MatchAnyTag(input.MatchAnyTag, context);
6385
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyTag");
6386
+ nodes.map((node) => {
6387
+ containerNode.addChildNode(node);
6388
+ });
6389
+ bodyNode.addChildNode(containerNode);
6390
+ }
6391
+ if (input.MatchObjectAge != null) {
6392
+ const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge");
6393
+ bodyNode.addChildNode(node);
6394
+ }
6395
+ if (input.MatchObjectSize != null) {
6396
+ const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize");
6397
+ bodyNode.addChildNode(node);
6398
+ }
6399
+ return bodyNode;
6400
+ };
6401
+ const se_StorageLensGroupFilter = (input, context) => {
6402
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroupFilter");
6403
+ if (input.MatchAnyPrefix != null) {
6404
+ const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context);
6405
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyPrefix");
6406
+ nodes.map((node) => {
6407
+ containerNode.addChildNode(node);
6408
+ });
6409
+ bodyNode.addChildNode(containerNode);
6410
+ }
6411
+ if (input.MatchAnySuffix != null) {
6412
+ const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context);
6413
+ const containerNode = new xml_builder_1.XmlNode("MatchAnySuffix");
6414
+ nodes.map((node) => {
6415
+ containerNode.addChildNode(node);
6416
+ });
6417
+ bodyNode.addChildNode(containerNode);
6418
+ }
6419
+ if (input.MatchAnyTag != null) {
6420
+ const nodes = se_MatchAnyTag(input.MatchAnyTag, context);
6421
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyTag");
6422
+ nodes.map((node) => {
6423
+ containerNode.addChildNode(node);
6424
+ });
6425
+ bodyNode.addChildNode(containerNode);
6426
+ }
6427
+ if (input.MatchObjectAge != null) {
6428
+ const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge");
6429
+ bodyNode.addChildNode(node);
6430
+ }
6431
+ if (input.MatchObjectSize != null) {
6432
+ const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize");
6433
+ bodyNode.addChildNode(node);
6434
+ }
6435
+ if (input.And != null) {
6436
+ const node = se_StorageLensGroupAndOperator(input.And, context).withName("And");
6437
+ bodyNode.addChildNode(node);
6438
+ }
6439
+ if (input.Or != null) {
6440
+ const node = se_StorageLensGroupOrOperator(input.Or, context).withName("Or");
6441
+ bodyNode.addChildNode(node);
6442
+ }
6443
+ return bodyNode;
6444
+ };
6445
+ const se_StorageLensGroupLevel = (input, context) => {
6446
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroupLevel");
6447
+ if (input.SelectionCriteria != null) {
6448
+ const node = se_StorageLensGroupLevelSelectionCriteria(input.SelectionCriteria, context).withName("SelectionCriteria");
6449
+ bodyNode.addChildNode(node);
6450
+ }
6451
+ return bodyNode;
6452
+ };
6453
+ const se_StorageLensGroupLevelExclude = (input, context) => {
6454
+ return input
6455
+ .filter((e) => e != null)
6456
+ .map((entry) => {
6457
+ const node = xml_builder_1.XmlNode.of("StorageLensGroupArn", entry);
6458
+ return node.withName("Arn");
6459
+ });
6460
+ };
6461
+ const se_StorageLensGroupLevelInclude = (input, context) => {
6462
+ return input
6463
+ .filter((e) => e != null)
6464
+ .map((entry) => {
6465
+ const node = xml_builder_1.XmlNode.of("StorageLensGroupArn", entry);
6466
+ return node.withName("Arn");
6467
+ });
6468
+ };
6469
+ const se_StorageLensGroupLevelSelectionCriteria = (input, context) => {
6470
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroupLevelSelectionCriteria");
6471
+ if (input.Include != null) {
6472
+ const nodes = se_StorageLensGroupLevelInclude(input.Include, context);
6473
+ const containerNode = new xml_builder_1.XmlNode("Include");
6474
+ nodes.map((node) => {
6475
+ containerNode.addChildNode(node);
6476
+ });
6477
+ bodyNode.addChildNode(containerNode);
6478
+ }
6479
+ if (input.Exclude != null) {
6480
+ const nodes = se_StorageLensGroupLevelExclude(input.Exclude, context);
6481
+ const containerNode = new xml_builder_1.XmlNode("Exclude");
6482
+ nodes.map((node) => {
6483
+ containerNode.addChildNode(node);
6484
+ });
6485
+ bodyNode.addChildNode(containerNode);
6486
+ }
6487
+ return bodyNode;
6488
+ };
6489
+ const se_StorageLensGroupOrOperator = (input, context) => {
6490
+ const bodyNode = new xml_builder_1.XmlNode("StorageLensGroupOrOperator");
6491
+ if (input.MatchAnyPrefix != null) {
6492
+ const nodes = se_MatchAnyPrefix(input.MatchAnyPrefix, context);
6493
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyPrefix");
6494
+ nodes.map((node) => {
6495
+ containerNode.addChildNode(node);
6496
+ });
6497
+ bodyNode.addChildNode(containerNode);
6498
+ }
6499
+ if (input.MatchAnySuffix != null) {
6500
+ const nodes = se_MatchAnySuffix(input.MatchAnySuffix, context);
6501
+ const containerNode = new xml_builder_1.XmlNode("MatchAnySuffix");
6502
+ nodes.map((node) => {
6503
+ containerNode.addChildNode(node);
6504
+ });
6505
+ bodyNode.addChildNode(containerNode);
6506
+ }
6507
+ if (input.MatchAnyTag != null) {
6508
+ const nodes = se_MatchAnyTag(input.MatchAnyTag, context);
6509
+ const containerNode = new xml_builder_1.XmlNode("MatchAnyTag");
6510
+ nodes.map((node) => {
6511
+ containerNode.addChildNode(node);
6512
+ });
6513
+ bodyNode.addChildNode(containerNode);
6514
+ }
6515
+ if (input.MatchObjectAge != null) {
6516
+ const node = se_MatchObjectAge(input.MatchObjectAge, context).withName("MatchObjectAge");
6517
+ bodyNode.addChildNode(node);
6518
+ }
6519
+ if (input.MatchObjectSize != null) {
6520
+ const node = se_MatchObjectSize(input.MatchObjectSize, context).withName("MatchObjectSize");
6521
+ bodyNode.addChildNode(node);
6522
+ }
6523
+ return bodyNode;
6524
+ };
5801
6525
  const se_StorageLensTag = (input, context) => {
5802
6526
  const bodyNode = new xml_builder_1.XmlNode("StorageLensTag");
5803
6527
  if (input.Key != null) {
@@ -5818,6 +6542,18 @@ const se_StorageLensTags = (input, context) => {
5818
6542
  return node.withName("Tag");
5819
6543
  });
5820
6544
  };
6545
+ const se_Tag = (input, context) => {
6546
+ const bodyNode = new xml_builder_1.XmlNode("Tag");
6547
+ if (input.Key != null) {
6548
+ const node = xml_builder_1.XmlNode.of("TagKeyString", input.Key).withName("Key");
6549
+ bodyNode.addChildNode(node);
6550
+ }
6551
+ if (input.Value != null) {
6552
+ const node = xml_builder_1.XmlNode.of("TagValueString", input.Value).withName("Value");
6553
+ bodyNode.addChildNode(node);
6554
+ }
6555
+ return bodyNode;
6556
+ };
5821
6557
  const se_Tagging = (input, context) => {
5822
6558
  const bodyNode = new xml_builder_1.XmlNode("Tagging");
5823
6559
  if (input.TagSet != null) {
@@ -5830,6 +6566,14 @@ const se_Tagging = (input, context) => {
5830
6566
  }
5831
6567
  return bodyNode;
5832
6568
  };
6569
+ const se_TagList = (input, context) => {
6570
+ return input
6571
+ .filter((e) => e != null)
6572
+ .map((entry) => {
6573
+ const node = se_Tag(entry, context);
6574
+ return node.withName("Tag");
6575
+ });
6576
+ };
5833
6577
  const se_Transition = (input, context) => {
5834
6578
  const bodyNode = new xml_builder_1.XmlNode("Transition");
5835
6579
  if (input.Date != null) {
@@ -5937,6 +6681,9 @@ const de_AccountLevel = (output, context) => {
5937
6681
  if (output["DetailedStatusCodesMetrics"] !== undefined) {
5938
6682
  contents.DetailedStatusCodesMetrics = de_DetailedStatusCodesMetrics(output["DetailedStatusCodesMetrics"], context);
5939
6683
  }
6684
+ if (output["StorageLensGroupLevel"] !== undefined) {
6685
+ contents.StorageLensGroupLevel = de_StorageLensGroupLevel(output["StorageLensGroupLevel"], context);
6686
+ }
5940
6687
  return contents;
5941
6688
  };
5942
6689
  const de_ActivityMetrics = (output, context) => {
@@ -6576,6 +7323,60 @@ const de_ListStorageLensConfigurationEntry = (output, context) => {
6576
7323
  }
6577
7324
  return contents;
6578
7325
  };
7326
+ const de_ListStorageLensGroupEntry = (output, context) => {
7327
+ const contents = {};
7328
+ if (output["Name"] !== undefined) {
7329
+ contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
7330
+ }
7331
+ if (output["StorageLensGroupArn"] !== undefined) {
7332
+ contents.StorageLensGroupArn = (0, smithy_client_1.expectString)(output["StorageLensGroupArn"]);
7333
+ }
7334
+ if (output["HomeRegion"] !== undefined) {
7335
+ contents.HomeRegion = (0, smithy_client_1.expectString)(output["HomeRegion"]);
7336
+ }
7337
+ return contents;
7338
+ };
7339
+ const de_MatchAnyPrefix = (output, context) => {
7340
+ return (output || [])
7341
+ .filter((e) => e != null)
7342
+ .map((entry) => {
7343
+ return (0, smithy_client_1.expectString)(entry);
7344
+ });
7345
+ };
7346
+ const de_MatchAnySuffix = (output, context) => {
7347
+ return (output || [])
7348
+ .filter((e) => e != null)
7349
+ .map((entry) => {
7350
+ return (0, smithy_client_1.expectString)(entry);
7351
+ });
7352
+ };
7353
+ const de_MatchAnyTag = (output, context) => {
7354
+ return (output || [])
7355
+ .filter((e) => e != null)
7356
+ .map((entry) => {
7357
+ return de_S3Tag(entry, context);
7358
+ });
7359
+ };
7360
+ const de_MatchObjectAge = (output, context) => {
7361
+ const contents = {};
7362
+ if (output["DaysGreaterThan"] !== undefined) {
7363
+ contents.DaysGreaterThan = (0, smithy_client_1.strictParseInt32)(output["DaysGreaterThan"]);
7364
+ }
7365
+ if (output["DaysLessThan"] !== undefined) {
7366
+ contents.DaysLessThan = (0, smithy_client_1.strictParseInt32)(output["DaysLessThan"]);
7367
+ }
7368
+ return contents;
7369
+ };
7370
+ const de_MatchObjectSize = (output, context) => {
7371
+ const contents = {};
7372
+ if (output["BytesGreaterThan"] !== undefined) {
7373
+ contents.BytesGreaterThan = (0, smithy_client_1.strictParseLong)(output["BytesGreaterThan"]);
7374
+ }
7375
+ if (output["BytesLessThan"] !== undefined) {
7376
+ contents.BytesLessThan = (0, smithy_client_1.strictParseLong)(output["BytesLessThan"]);
7377
+ }
7378
+ return contents;
7379
+ };
6579
7380
  const de_Metrics = (output, context) => {
6580
7381
  const contents = {};
6581
7382
  if (output["Status"] !== undefined) {
@@ -7483,6 +8284,153 @@ const de_StorageLensDataExportEncryption = (output, context) => {
7483
8284
  }
7484
8285
  return contents;
7485
8286
  };
8287
+ const de_StorageLensGroup = (output, context) => {
8288
+ const contents = {};
8289
+ if (output["Name"] !== undefined) {
8290
+ contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
8291
+ }
8292
+ if (output["Filter"] !== undefined) {
8293
+ contents.Filter = de_StorageLensGroupFilter(output["Filter"], context);
8294
+ }
8295
+ if (output["StorageLensGroupArn"] !== undefined) {
8296
+ contents.StorageLensGroupArn = (0, smithy_client_1.expectString)(output["StorageLensGroupArn"]);
8297
+ }
8298
+ return contents;
8299
+ };
8300
+ const de_StorageLensGroupAndOperator = (output, context) => {
8301
+ const contents = {};
8302
+ if (output.MatchAnyPrefix === "") {
8303
+ contents.MatchAnyPrefix = [];
8304
+ }
8305
+ else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) {
8306
+ contents.MatchAnyPrefix = de_MatchAnyPrefix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyPrefix"]["Prefix"]), context);
8307
+ }
8308
+ if (output.MatchAnySuffix === "") {
8309
+ contents.MatchAnySuffix = [];
8310
+ }
8311
+ else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) {
8312
+ contents.MatchAnySuffix = de_MatchAnySuffix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnySuffix"]["Suffix"]), context);
8313
+ }
8314
+ if (output.MatchAnyTag === "") {
8315
+ contents.MatchAnyTag = [];
8316
+ }
8317
+ else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) {
8318
+ contents.MatchAnyTag = de_MatchAnyTag((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyTag"]["Tag"]), context);
8319
+ }
8320
+ if (output["MatchObjectAge"] !== undefined) {
8321
+ contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context);
8322
+ }
8323
+ if (output["MatchObjectSize"] !== undefined) {
8324
+ contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context);
8325
+ }
8326
+ return contents;
8327
+ };
8328
+ const de_StorageLensGroupFilter = (output, context) => {
8329
+ const contents = {};
8330
+ if (output.MatchAnyPrefix === "") {
8331
+ contents.MatchAnyPrefix = [];
8332
+ }
8333
+ else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) {
8334
+ contents.MatchAnyPrefix = de_MatchAnyPrefix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyPrefix"]["Prefix"]), context);
8335
+ }
8336
+ if (output.MatchAnySuffix === "") {
8337
+ contents.MatchAnySuffix = [];
8338
+ }
8339
+ else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) {
8340
+ contents.MatchAnySuffix = de_MatchAnySuffix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnySuffix"]["Suffix"]), context);
8341
+ }
8342
+ if (output.MatchAnyTag === "") {
8343
+ contents.MatchAnyTag = [];
8344
+ }
8345
+ else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) {
8346
+ contents.MatchAnyTag = de_MatchAnyTag((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyTag"]["Tag"]), context);
8347
+ }
8348
+ if (output["MatchObjectAge"] !== undefined) {
8349
+ contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context);
8350
+ }
8351
+ if (output["MatchObjectSize"] !== undefined) {
8352
+ contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context);
8353
+ }
8354
+ if (output["And"] !== undefined) {
8355
+ contents.And = de_StorageLensGroupAndOperator(output["And"], context);
8356
+ }
8357
+ if (output["Or"] !== undefined) {
8358
+ contents.Or = de_StorageLensGroupOrOperator(output["Or"], context);
8359
+ }
8360
+ return contents;
8361
+ };
8362
+ const de_StorageLensGroupLevel = (output, context) => {
8363
+ const contents = {};
8364
+ if (output["SelectionCriteria"] !== undefined) {
8365
+ contents.SelectionCriteria = de_StorageLensGroupLevelSelectionCriteria(output["SelectionCriteria"], context);
8366
+ }
8367
+ return contents;
8368
+ };
8369
+ const de_StorageLensGroupLevelExclude = (output, context) => {
8370
+ return (output || [])
8371
+ .filter((e) => e != null)
8372
+ .map((entry) => {
8373
+ return (0, smithy_client_1.expectString)(entry);
8374
+ });
8375
+ };
8376
+ const de_StorageLensGroupLevelInclude = (output, context) => {
8377
+ return (output || [])
8378
+ .filter((e) => e != null)
8379
+ .map((entry) => {
8380
+ return (0, smithy_client_1.expectString)(entry);
8381
+ });
8382
+ };
8383
+ const de_StorageLensGroupLevelSelectionCriteria = (output, context) => {
8384
+ const contents = {};
8385
+ if (output.Include === "") {
8386
+ contents.Include = [];
8387
+ }
8388
+ else if (output["Include"] !== undefined && output["Include"]["Arn"] !== undefined) {
8389
+ contents.Include = de_StorageLensGroupLevelInclude((0, smithy_client_1.getArrayIfSingleItem)(output["Include"]["Arn"]), context);
8390
+ }
8391
+ if (output.Exclude === "") {
8392
+ contents.Exclude = [];
8393
+ }
8394
+ else if (output["Exclude"] !== undefined && output["Exclude"]["Arn"] !== undefined) {
8395
+ contents.Exclude = de_StorageLensGroupLevelExclude((0, smithy_client_1.getArrayIfSingleItem)(output["Exclude"]["Arn"]), context);
8396
+ }
8397
+ return contents;
8398
+ };
8399
+ const de_StorageLensGroupList = (output, context) => {
8400
+ return (output || [])
8401
+ .filter((e) => e != null)
8402
+ .map((entry) => {
8403
+ return de_ListStorageLensGroupEntry(entry, context);
8404
+ });
8405
+ };
8406
+ const de_StorageLensGroupOrOperator = (output, context) => {
8407
+ const contents = {};
8408
+ if (output.MatchAnyPrefix === "") {
8409
+ contents.MatchAnyPrefix = [];
8410
+ }
8411
+ else if (output["MatchAnyPrefix"] !== undefined && output["MatchAnyPrefix"]["Prefix"] !== undefined) {
8412
+ contents.MatchAnyPrefix = de_MatchAnyPrefix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyPrefix"]["Prefix"]), context);
8413
+ }
8414
+ if (output.MatchAnySuffix === "") {
8415
+ contents.MatchAnySuffix = [];
8416
+ }
8417
+ else if (output["MatchAnySuffix"] !== undefined && output["MatchAnySuffix"]["Suffix"] !== undefined) {
8418
+ contents.MatchAnySuffix = de_MatchAnySuffix((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnySuffix"]["Suffix"]), context);
8419
+ }
8420
+ if (output.MatchAnyTag === "") {
8421
+ contents.MatchAnyTag = [];
8422
+ }
8423
+ else if (output["MatchAnyTag"] !== undefined && output["MatchAnyTag"]["Tag"] !== undefined) {
8424
+ contents.MatchAnyTag = de_MatchAnyTag((0, smithy_client_1.getArrayIfSingleItem)(output["MatchAnyTag"]["Tag"]), context);
8425
+ }
8426
+ if (output["MatchObjectAge"] !== undefined) {
8427
+ contents.MatchObjectAge = de_MatchObjectAge(output["MatchObjectAge"], context);
8428
+ }
8429
+ if (output["MatchObjectSize"] !== undefined) {
8430
+ contents.MatchObjectSize = de_MatchObjectSize(output["MatchObjectSize"], context);
8431
+ }
8432
+ return contents;
8433
+ };
7486
8434
  const de_StorageLensTag = (output, context) => {
7487
8435
  const contents = {};
7488
8436
  if (output["Key"] !== undefined) {
@@ -7500,6 +8448,23 @@ const de_StorageLensTags = (output, context) => {
7500
8448
  return de_StorageLensTag(entry, context);
7501
8449
  });
7502
8450
  };
8451
+ const de_Tag = (output, context) => {
8452
+ const contents = {};
8453
+ if (output["Key"] !== undefined) {
8454
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
8455
+ }
8456
+ if (output["Value"] !== undefined) {
8457
+ contents.Value = (0, smithy_client_1.expectString)(output["Value"]);
8458
+ }
8459
+ return contents;
8460
+ };
8461
+ const de_TagList = (output, context) => {
8462
+ return (output || [])
8463
+ .filter((e) => e != null)
8464
+ .map((entry) => {
8465
+ return de_Tag(entry, context);
8466
+ });
8467
+ };
7503
8468
  const de_Transition = (output, context) => {
7504
8469
  const contents = {};
7505
8470
  if (output["Date"] !== undefined) {