@aws-sdk/client-s3-control 3.41.0 → 3.46.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
18
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
19
+
20
+
21
+
22
+
23
+
24
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
25
+
26
+
27
+ ### Features
28
+
29
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
30
+
31
+
32
+
33
+
34
+
35
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
36
+
37
+
38
+ ### Features
39
+
40
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
41
+
42
+
43
+
44
+
45
+
46
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
52
+
53
+
54
+
55
+
56
+
6
57
  # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
58
 
8
59
 
@@ -344,6 +344,7 @@ const partitionHash = {
344
344
  "ap-south-1",
345
345
  "ap-southeast-1",
346
346
  "ap-southeast-2",
347
+ "ap-southeast-3",
347
348
  "ca-central-1",
348
349
  "ca-central-1-fips",
349
350
  "eu-central-1",
@@ -369,6 +370,10 @@ const partitionHash = {
369
370
  hostname: "s3-control.{region}.amazonaws.com",
370
371
  tags: [],
371
372
  },
373
+ {
374
+ hostname: "s3-control-fips.{region}.amazonaws.com",
375
+ tags: ["fips"],
376
+ },
372
377
  {
373
378
  hostname: "s3-control-fips.dualstack.{region}.amazonaws.com",
374
379
  tags: ["dualstack", "fips"],
@@ -387,6 +392,14 @@ const partitionHash = {
387
392
  hostname: "s3-control.{region}.amazonaws.com.cn",
388
393
  tags: [],
389
394
  },
395
+ {
396
+ hostname: "s3-control-fips.{region}.amazonaws.com.cn",
397
+ tags: ["fips"],
398
+ },
399
+ {
400
+ hostname: "s3-control-fips.{region}.api.amazonwebservices.com.cn",
401
+ tags: ["dualstack", "fips"],
402
+ },
390
403
  {
391
404
  hostname: "s3-control.dualstack.{region}.amazonaws.com.cn",
392
405
  tags: ["dualstack"],
@@ -429,6 +442,10 @@ const partitionHash = {
429
442
  hostname: "s3-control.{region}.amazonaws.com",
430
443
  tags: [],
431
444
  },
445
+ {
446
+ hostname: "s3-control-fips.{region}.amazonaws.com",
447
+ tags: ["fips"],
448
+ },
432
449
  {
433
450
  hostname: "s3-control-fips.dualstack.{region}.amazonaws.com",
434
451
  tags: ["dualstack", "fips"],
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.S3Permission = exports.S3Grantee = exports.S3GranteeTypeIdentifier = exports.S3InitiateRestoreObjectOperation = exports.S3GlacierJobTier = exports.S3DeleteObjectTaggingOperation = exports.LambdaInvokeOperation = exports.JobManifest = exports.JobManifestSpec = exports.JobManifestFormat = exports.JobManifestFieldName = exports.JobManifestLocation = exports.BadRequestException = exports.CreateBucketResult = exports.CreateBucketRequest = exports.CreateBucketConfiguration = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.CreateAccessPointForObjectLambdaResult = exports.CreateAccessPointForObjectLambdaRequest = exports.ObjectLambdaConfiguration = exports.ObjectLambdaTransformationConfiguration = exports.ObjectLambdaContentTransformation = exports.ObjectLambdaTransformationConfigurationAction = exports.ObjectLambdaAllowedFeature = exports.CreateAccessPointResult = exports.CreateAccessPointRequest = exports.AwsLambdaTransformation = exports.AsyncOperation = exports.AsyncResponseDetails = exports.MultiRegionAccessPointsAsyncResponse = exports.MultiRegionAccessPointRegionalResponse = exports.AsyncRequestParameters = exports.PutMultiRegionAccessPointPolicyInput = exports.DeleteMultiRegionAccessPointInput = exports.CreateMultiRegionAccessPointInput = exports.Region = exports.PublicAccessBlockConfiguration = exports.AsyncOperationName = exports.AsyncErrorDetails = exports.AccountLevel = exports.BucketLevel = exports.PrefixLevel = exports.PrefixLevelStorageMetrics = exports.SelectionCriteria = exports.ActivityMetrics = exports.AccessPoint = exports.VpcConfiguration = exports.NetworkOrigin = exports.AbortIncompleteMultipartUpload = void 0;
4
4
  exports.JobFailure = exports.DescribeJobRequest = exports.DeleteStorageLensConfigurationTaggingResult = exports.DeleteStorageLensConfigurationTaggingRequest = exports.DeleteStorageLensConfigurationRequest = exports.DeletePublicAccessBlockRequest = exports.DeleteMultiRegionAccessPointResult = exports.DeleteMultiRegionAccessPointRequest = exports.NotFoundException = exports.DeleteJobTaggingResult = exports.DeleteJobTaggingRequest = exports.DeleteBucketTaggingRequest = exports.DeleteBucketPolicyRequest = exports.DeleteBucketLifecycleConfigurationRequest = exports.DeleteBucketRequest = exports.DeleteAccessPointPolicyForObjectLambdaRequest = exports.DeleteAccessPointPolicyRequest = exports.DeleteAccessPointForObjectLambdaRequest = exports.DeleteAccessPointRequest = exports.CreateMultiRegionAccessPointResult = exports.CreateMultiRegionAccessPointRequest = exports.TooManyRequestsException = exports.InternalServiceException = exports.IdempotencyException = exports.CreateJobResult = exports.CreateJobRequest = exports.JobReport = exports.JobReportScope = exports.JobReportFormat = exports.JobOperation = exports.S3SetObjectTaggingOperation = exports.S3SetObjectRetentionOperation = exports.S3Retention = exports.S3ObjectLockRetentionMode = exports.S3SetObjectLegalHoldOperation = exports.S3ObjectLockLegalHold = exports.S3CopyObjectOperation = exports.S3StorageClass = exports.S3ObjectLockMode = exports.S3ObjectLockLegalHoldStatus = exports.S3Tag = exports.S3ObjectMetadata = exports.S3SSEAlgorithm = exports.S3MetadataDirective = exports.S3SetObjectAclOperation = exports.S3AccessControlPolicy = exports.S3CannedAccessControlList = exports.S3AccessControlList = exports.S3ObjectOwner = exports.S3Grant = void 0;
5
5
  exports.GetMultiRegionAccessPointPolicyStatusResult = exports.GetMultiRegionAccessPointPolicyStatusRequest = exports.GetMultiRegionAccessPointPolicyResult = exports.MultiRegionAccessPointPolicyDocument = exports.ProposedMultiRegionAccessPointPolicy = exports.EstablishedMultiRegionAccessPointPolicy = exports.GetMultiRegionAccessPointPolicyRequest = exports.GetMultiRegionAccessPointResult = exports.MultiRegionAccessPointReport = exports.MultiRegionAccessPointStatus = exports.RegionReport = exports.GetMultiRegionAccessPointRequest = exports.GetJobTaggingResult = exports.GetJobTaggingRequest = exports.GetBucketTaggingResult = exports.GetBucketTaggingRequest = exports.GetBucketPolicyResult = exports.GetBucketPolicyRequest = exports.GetBucketLifecycleConfigurationResult = exports.LifecycleRule = exports.Transition = exports.NoncurrentVersionTransition = exports.NoncurrentVersionExpiration = exports.LifecycleRuleFilter = exports.LifecycleRuleAndOperator = exports.LifecycleExpiration = exports.GetBucketLifecycleConfigurationRequest = exports.GetBucketResult = exports.GetBucketRequest = exports.GetAccessPointPolicyStatusForObjectLambdaResult = exports.GetAccessPointPolicyStatusForObjectLambdaRequest = exports.GetAccessPointPolicyStatusResult = exports.PolicyStatus = exports.GetAccessPointPolicyStatusRequest = exports.GetAccessPointPolicyForObjectLambdaResult = exports.GetAccessPointPolicyForObjectLambdaRequest = exports.GetAccessPointPolicyResult = exports.GetAccessPointPolicyRequest = exports.GetAccessPointForObjectLambdaResult = exports.GetAccessPointForObjectLambdaRequest = exports.GetAccessPointConfigurationForObjectLambdaResult = exports.GetAccessPointConfigurationForObjectLambdaRequest = exports.GetAccessPointResult = exports.GetAccessPointRequest = exports.DescribeMultiRegionAccessPointOperationResult = exports.DescribeMultiRegionAccessPointOperationRequest = exports.DescribeJobResult = exports.JobDescriptor = exports.JobStatus = exports.JobProgressSummary = void 0;
6
- exports.PutPublicAccessBlockRequest = exports.PutMultiRegionAccessPointPolicyResult = exports.PutMultiRegionAccessPointPolicyRequest = exports.TooManyTagsException = exports.PutJobTaggingResult = exports.PutJobTaggingRequest = exports.PutBucketTaggingRequest = exports.Tagging = exports.PutBucketPolicyRequest = exports.PutBucketLifecycleConfigurationRequest = exports.LifecycleConfiguration = exports.PutAccessPointPolicyForObjectLambdaRequest = exports.PutAccessPointPolicyRequest = exports.PutAccessPointConfigurationForObjectLambdaRequest = exports.ListStorageLensConfigurationsResult = exports.ListStorageLensConfigurationEntry = exports.ListStorageLensConfigurationsRequest = exports.ListRegionalBucketsResult = exports.RegionalBucket = exports.ListRegionalBucketsRequest = exports.ListMultiRegionAccessPointsResult = exports.ListMultiRegionAccessPointsRequest = exports.ListJobsResult = exports.JobListDescriptor = exports.OperationName = exports.ListJobsRequest = exports.InvalidRequestException = exports.InvalidNextTokenException = exports.ListAccessPointsForObjectLambdaResult = exports.ObjectLambdaAccessPoint = exports.ListAccessPointsForObjectLambdaRequest = exports.ListAccessPointsResult = exports.ListAccessPointsRequest = exports.GetStorageLensConfigurationTaggingResult = exports.StorageLensTag = exports.GetStorageLensConfigurationTaggingRequest = exports.GetStorageLensConfigurationResult = exports.StorageLensConfiguration = exports.Include = exports._Exclude = exports.StorageLensDataExport = exports.S3BucketDestination = exports.StorageLensDataExportEncryption = exports.SSES3 = exports.SSEKMS = exports.StorageLensAwsOrg = exports.GetStorageLensConfigurationRequest = exports.NoSuchPublicAccessBlockConfiguration = exports.GetPublicAccessBlockRequest = exports.GetPublicAccessBlockOutput = void 0;
7
- exports.UpdateJobStatusResult = exports.UpdateJobStatusRequest = exports.RequestedJobStatus = exports.JobStatusException = exports.UpdateJobPriorityResult = exports.UpdateJobPriorityRequest = exports.PutStorageLensConfigurationTaggingResult = exports.PutStorageLensConfigurationTaggingRequest = exports.PutStorageLensConfigurationRequest = void 0;
6
+ exports.PutMultiRegionAccessPointPolicyResult = exports.PutMultiRegionAccessPointPolicyRequest = exports.TooManyTagsException = exports.PutJobTaggingResult = exports.PutJobTaggingRequest = exports.PutBucketTaggingRequest = exports.Tagging = exports.PutBucketPolicyRequest = exports.PutBucketLifecycleConfigurationRequest = exports.LifecycleConfiguration = exports.PutAccessPointPolicyForObjectLambdaRequest = exports.PutAccessPointPolicyRequest = exports.PutAccessPointConfigurationForObjectLambdaRequest = exports.ListStorageLensConfigurationsResult = exports.ListStorageLensConfigurationEntry = exports.ListStorageLensConfigurationsRequest = exports.ListRegionalBucketsResult = exports.RegionalBucket = exports.ListRegionalBucketsRequest = exports.ListMultiRegionAccessPointsResult = exports.ListMultiRegionAccessPointsRequest = exports.ListJobsResult = exports.JobListDescriptor = exports.OperationName = exports.ListJobsRequest = exports.InvalidRequestException = exports.InvalidNextTokenException = exports.ListAccessPointsForObjectLambdaResult = exports.ObjectLambdaAccessPoint = exports.ListAccessPointsForObjectLambdaRequest = exports.ListAccessPointsResult = exports.ListAccessPointsRequest = exports.GetStorageLensConfigurationTaggingResult = exports.StorageLensTag = exports.GetStorageLensConfigurationTaggingRequest = exports.GetStorageLensConfigurationResult = exports.StorageLensConfiguration = exports.Include = exports._Exclude = exports.StorageLensDataExport = exports.S3BucketDestination = exports.StorageLensDataExportEncryption = exports.SSES3 = exports.SSEKMS = exports.CloudWatchMetrics = exports.StorageLensAwsOrg = exports.GetStorageLensConfigurationRequest = exports.NoSuchPublicAccessBlockConfiguration = exports.GetPublicAccessBlockRequest = exports.GetPublicAccessBlockOutput = void 0;
7
+ exports.UpdateJobStatusResult = exports.UpdateJobStatusRequest = exports.RequestedJobStatus = exports.JobStatusException = exports.UpdateJobPriorityResult = exports.UpdateJobPriorityRequest = exports.PutStorageLensConfigurationTaggingResult = exports.PutStorageLensConfigurationTaggingRequest = exports.PutStorageLensConfigurationRequest = exports.PutPublicAccessBlockRequest = void 0;
8
8
  var AbortIncompleteMultipartUpload;
9
9
  (function (AbortIncompleteMultipartUpload) {
10
10
  AbortIncompleteMultipartUpload.filterSensitiveLog = (obj) => ({
@@ -960,6 +960,12 @@ var StorageLensAwsOrg;
960
960
  ...obj,
961
961
  });
962
962
  })(StorageLensAwsOrg = exports.StorageLensAwsOrg || (exports.StorageLensAwsOrg = {}));
963
+ var CloudWatchMetrics;
964
+ (function (CloudWatchMetrics) {
965
+ CloudWatchMetrics.filterSensitiveLog = (obj) => ({
966
+ ...obj,
967
+ });
968
+ })(CloudWatchMetrics = exports.CloudWatchMetrics || (exports.CloudWatchMetrics = {}));
963
969
  var SSEKMS;
964
970
  (function (SSEKMS) {
965
971
  SSEKMS.filterSensitiveLog = (obj) => ({
@@ -5218,6 +5218,14 @@ const serializeAws_restXmlBuckets = (input, context) => {
5218
5218
  return node.withName("Arn");
5219
5219
  });
5220
5220
  };
5221
+ const serializeAws_restXmlCloudWatchMetrics = (input, context) => {
5222
+ const bodyNode = new xml_builder_1.XmlNode("CloudWatchMetrics");
5223
+ if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
5224
+ const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
5225
+ bodyNode.addChildNode(node);
5226
+ }
5227
+ return bodyNode;
5228
+ };
5221
5229
  const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
5222
5230
  const bodyNode = new xml_builder_1.XmlNode("CreateBucketConfiguration");
5223
5231
  if (input.LocationConstraint !== undefined && input.LocationConstraint !== null) {
@@ -6273,6 +6281,10 @@ const serializeAws_restXmlStorageLensDataExport = (input, context) => {
6273
6281
  const node = serializeAws_restXmlS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
6274
6282
  bodyNode.addChildNode(node);
6275
6283
  }
6284
+ if (input.CloudWatchMetrics !== undefined && input.CloudWatchMetrics !== null) {
6285
+ const node = serializeAws_restXmlCloudWatchMetrics(input.CloudWatchMetrics, context).withName("CloudWatchMetrics");
6286
+ bodyNode.addChildNode(node);
6287
+ }
6276
6288
  return bodyNode;
6277
6289
  };
6278
6290
  const serializeAws_restXmlStorageLensDataExportEncryption = (input, context) => {
@@ -6547,6 +6559,15 @@ const deserializeAws_restXmlBuckets = (output, context) => {
6547
6559
  return smithy_client_1.expectString(entry);
6548
6560
  });
6549
6561
  };
6562
+ const deserializeAws_restXmlCloudWatchMetrics = (output, context) => {
6563
+ const contents = {
6564
+ IsEnabled: undefined,
6565
+ };
6566
+ if (output["IsEnabled"] !== undefined) {
6567
+ contents.IsEnabled = smithy_client_1.parseBoolean(output["IsEnabled"]);
6568
+ }
6569
+ return contents;
6570
+ };
6550
6571
  const deserializeAws_restXmlCreateMultiRegionAccessPointInput = (output, context) => {
6551
6572
  const contents = {
6552
6573
  Name: undefined,
@@ -7884,10 +7905,14 @@ const deserializeAws_restXmlStorageLensConfigurationList = (output, context) =>
7884
7905
  const deserializeAws_restXmlStorageLensDataExport = (output, context) => {
7885
7906
  const contents = {
7886
7907
  S3BucketDestination: undefined,
7908
+ CloudWatchMetrics: undefined,
7887
7909
  };
7888
7910
  if (output["S3BucketDestination"] !== undefined) {
7889
7911
  contents.S3BucketDestination = deserializeAws_restXmlS3BucketDestination(output["S3BucketDestination"], context);
7890
7912
  }
7913
+ if (output["CloudWatchMetrics"] !== undefined) {
7914
+ contents.CloudWatchMetrics = deserializeAws_restXmlCloudWatchMetrics(output["CloudWatchMetrics"], context);
7915
+ }
7891
7916
  return contents;
7892
7917
  };
7893
7918
  const deserializeAws_restXmlStorageLensDataExportEncryption = (output, context) => {
@@ -16,10 +16,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
16
16
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
17
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
- const smithy_client_1 = require("@aws-sdk/smithy-client");
20
19
  const getRuntimeConfig = (config) => {
21
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
22
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
23
21
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
22
  return {
25
23
  ...clientSharedValues,
@@ -342,6 +342,7 @@ var partitionHash = {
342
342
  "ap-south-1",
343
343
  "ap-southeast-1",
344
344
  "ap-southeast-2",
345
+ "ap-southeast-3",
345
346
  "ca-central-1",
346
347
  "ca-central-1-fips",
347
348
  "eu-central-1",
@@ -367,6 +368,10 @@ var partitionHash = {
367
368
  hostname: "s3-control.{region}.amazonaws.com",
368
369
  tags: [],
369
370
  },
371
+ {
372
+ hostname: "s3-control-fips.{region}.amazonaws.com",
373
+ tags: ["fips"],
374
+ },
370
375
  {
371
376
  hostname: "s3-control-fips.dualstack.{region}.amazonaws.com",
372
377
  tags: ["dualstack", "fips"],
@@ -385,6 +390,14 @@ var partitionHash = {
385
390
  hostname: "s3-control.{region}.amazonaws.com.cn",
386
391
  tags: [],
387
392
  },
393
+ {
394
+ hostname: "s3-control-fips.{region}.amazonaws.com.cn",
395
+ tags: ["fips"],
396
+ },
397
+ {
398
+ hostname: "s3-control-fips.{region}.api.amazonwebservices.com.cn",
399
+ tags: ["dualstack", "fips"],
400
+ },
388
401
  {
389
402
  hostname: "s3-control.dualstack.{region}.amazonaws.com.cn",
390
403
  tags: ["dualstack"],
@@ -427,6 +440,10 @@ var partitionHash = {
427
440
  hostname: "s3-control.{region}.amazonaws.com",
428
441
  tags: [],
429
442
  },
443
+ {
444
+ hostname: "s3-control-fips.{region}.amazonaws.com",
445
+ tags: ["fips"],
446
+ },
430
447
  {
431
448
  hostname: "s3-control-fips.dualstack.{region}.amazonaws.com",
432
449
  tags: ["dualstack", "fips"],
@@ -685,6 +685,10 @@ export var StorageLensAwsOrg;
685
685
  (function (StorageLensAwsOrg) {
686
686
  StorageLensAwsOrg.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
687
687
  })(StorageLensAwsOrg || (StorageLensAwsOrg = {}));
688
+ export var CloudWatchMetrics;
689
+ (function (CloudWatchMetrics) {
690
+ CloudWatchMetrics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
691
+ })(CloudWatchMetrics || (CloudWatchMetrics = {}));
688
692
  export var SSEKMS;
689
693
  (function (SSEKMS) {
690
694
  SSEKMS.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -6043,6 +6043,14 @@ var serializeAws_restXmlBuckets = function (input, context) {
6043
6043
  return node.withName("Arn");
6044
6044
  });
6045
6045
  };
6046
+ var serializeAws_restXmlCloudWatchMetrics = function (input, context) {
6047
+ var bodyNode = new __XmlNode("CloudWatchMetrics");
6048
+ if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
6049
+ var node = new __XmlNode("IsEnabled").addChildNode(new __XmlText(String(input.IsEnabled))).withName("IsEnabled");
6050
+ bodyNode.addChildNode(node);
6051
+ }
6052
+ return bodyNode;
6053
+ };
6046
6054
  var serializeAws_restXmlCreateBucketConfiguration = function (input, context) {
6047
6055
  var bodyNode = new __XmlNode("CreateBucketConfiguration");
6048
6056
  if (input.LocationConstraint !== undefined && input.LocationConstraint !== null) {
@@ -7098,6 +7106,10 @@ var serializeAws_restXmlStorageLensDataExport = function (input, context) {
7098
7106
  var node = serializeAws_restXmlS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
7099
7107
  bodyNode.addChildNode(node);
7100
7108
  }
7109
+ if (input.CloudWatchMetrics !== undefined && input.CloudWatchMetrics !== null) {
7110
+ var node = serializeAws_restXmlCloudWatchMetrics(input.CloudWatchMetrics, context).withName("CloudWatchMetrics");
7111
+ bodyNode.addChildNode(node);
7112
+ }
7101
7113
  return bodyNode;
7102
7114
  };
7103
7115
  var serializeAws_restXmlStorageLensDataExportEncryption = function (input, context) {
@@ -7372,6 +7384,15 @@ var deserializeAws_restXmlBuckets = function (output, context) {
7372
7384
  return __expectString(entry);
7373
7385
  });
7374
7386
  };
7387
+ var deserializeAws_restXmlCloudWatchMetrics = function (output, context) {
7388
+ var contents = {
7389
+ IsEnabled: undefined,
7390
+ };
7391
+ if (output["IsEnabled"] !== undefined) {
7392
+ contents.IsEnabled = __parseBoolean(output["IsEnabled"]);
7393
+ }
7394
+ return contents;
7395
+ };
7375
7396
  var deserializeAws_restXmlCreateMultiRegionAccessPointInput = function (output, context) {
7376
7397
  var contents = {
7377
7398
  Name: undefined,
@@ -8705,10 +8726,14 @@ var deserializeAws_restXmlStorageLensConfigurationList = function (output, conte
8705
8726
  var deserializeAws_restXmlStorageLensDataExport = function (output, context) {
8706
8727
  var contents = {
8707
8728
  S3BucketDestination: undefined,
8729
+ CloudWatchMetrics: undefined,
8708
8730
  };
8709
8731
  if (output["S3BucketDestination"] !== undefined) {
8710
8732
  contents.S3BucketDestination = deserializeAws_restXmlS3BucketDestination(output["S3BucketDestination"], context);
8711
8733
  }
8734
+ if (output["CloudWatchMetrics"] !== undefined) {
8735
+ contents.CloudWatchMetrics = deserializeAws_restXmlCloudWatchMetrics(output["CloudWatchMetrics"], context);
8736
+ }
8712
8737
  return contents;
8713
8738
  };
8714
8739
  var deserializeAws_restXmlStorageLensDataExportEncryption = function (output, context) {
@@ -13,10 +13,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
13
13
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
14
14
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
15
15
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
16
  export var getRuntimeConfig = function (config) {
18
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
19
- emitWarningIfUnsupportedVersion(process.version);
20
18
  var clientSharedValues = getSharedRuntimeConfig(config);
21
19
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : Hash.bind(null, "md5"), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new NodeHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, streamHasher: (_o = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _o !== void 0 ? _o : streamHasher, useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : fromUtf8, utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : toUtf8 });
22
20
  };
@@ -734,6 +734,13 @@ export interface CreateBucketRequest {
734
734
  * <p>The name of the bucket.</p>
735
735
  */
736
736
  Bucket: string | undefined;
737
+ /**
738
+ * <p>The configuration information for the bucket.</p>
739
+ * <note>
740
+ * <p>This is not supported by Amazon S3 on Outposts buckets.</p>
741
+ * </note>
742
+ */
743
+ CreateBucketConfiguration?: CreateBucketConfiguration;
737
744
  /**
738
745
  * <p>Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.</p>
739
746
  * <note>
@@ -783,13 +790,6 @@ export interface CreateBucketRequest {
783
790
  * </note>
784
791
  */
785
792
  OutpostId?: string;
786
- /**
787
- * <p>The configuration information for the bucket.</p>
788
- * <note>
789
- * <p>This is not supported by Amazon S3 on Outposts buckets.</p>
790
- * </note>
791
- */
792
- CreateBucketConfiguration?: CreateBucketConfiguration;
793
793
  }
794
794
  export declare namespace CreateBucketRequest {
795
795
  /**
@@ -942,16 +942,16 @@ export declare enum S3GlacierJobTier {
942
942
  */
943
943
  export interface S3InitiateRestoreObjectOperation {
944
944
  /**
945
- * <p>This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive object remains available in Amazon S3.
945
+ * <p>This argument specifies how long the S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive object remains available in Amazon S3.
946
946
  * S3 Initiate Restore Object jobs that
947
- * target S3 Glacier and S3 Glacier Deep Archive objects require <code>ExpirationInDays</code> set to 1
947
+ * target S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive objects require <code>ExpirationInDays</code> set to 1
948
948
  * or greater.</p>
949
949
  * <p>Conversely, do <i>not</i> set <code>ExpirationInDays</code> when
950
950
  * creating S3 Initiate Restore Object jobs that target
951
951
  * S3 Intelligent-Tiering Archive Access and Deep Archive Access tier objects. Objects in
952
952
  * S3 Intelligent-Tiering archive access tiers are not subject to restore expiry, so
953
953
  * specifying <code>ExpirationInDays</code> results in restore request failure.</p>
954
- * <p>S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier Deep Archive storage class
954
+ * <p>S3 Batch Operations jobs can operate either on S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive storage class
955
955
  * objects or on S3 Intelligent-Tiering Archive Access and Deep Archive Access storage tier
956
956
  * objects, but not both types in the same job. If you need to restore objects of both types
957
957
  * you <i>must</i> create separate Batch Operations jobs. </p>
@@ -3035,6 +3035,22 @@ export declare namespace StorageLensAwsOrg {
3035
3035
  */
3036
3036
  const filterSensitiveLog: (obj: StorageLensAwsOrg) => any;
3037
3037
  }
3038
+ /**
3039
+ * <p>A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.</p>
3040
+ * <p>For more information about publishing S3 Storage Lens metrics to CloudWatch, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_view_metrics_cloudwatch.html">Monitor S3 Storage Lens metrics in CloudWatch</a> in the <i>Amazon S3 User Guide</i>.</p>
3041
+ */
3042
+ export interface CloudWatchMetrics {
3043
+ /**
3044
+ * <p>A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of <code>true</code> indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.</p>
3045
+ */
3046
+ IsEnabled: boolean | undefined;
3047
+ }
3048
+ export declare namespace CloudWatchMetrics {
3049
+ /**
3050
+ * @internal
3051
+ */
3052
+ const filterSensitiveLog: (obj: CloudWatchMetrics) => any;
3053
+ }
3038
3054
  /**
3039
3055
  * <p></p>
3040
3056
  */
@@ -3136,7 +3152,11 @@ export interface StorageLensDataExport {
3136
3152
  * <p>This bucket must be located in the same Region as the storage lens configuration. </p>
3137
3153
  * </note>
3138
3154
  */
3139
- S3BucketDestination: S3BucketDestination | undefined;
3155
+ S3BucketDestination?: S3BucketDestination;
3156
+ /**
3157
+ * <p>A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.</p>
3158
+ */
3159
+ CloudWatchMetrics?: CloudWatchMetrics;
3140
3160
  }
3141
3161
  export declare namespace StorageLensDataExport {
3142
3162
  /**
@@ -3942,15 +3962,15 @@ export declare namespace PutMultiRegionAccessPointPolicyResult {
3942
3962
  const filterSensitiveLog: (obj: PutMultiRegionAccessPointPolicyResult) => any;
3943
3963
  }
3944
3964
  export interface PutPublicAccessBlockRequest {
3965
+ /**
3966
+ * <p>The <code>PublicAccessBlock</code> configuration that you want to apply to the specified Amazon Web Services account.</p>
3967
+ */
3968
+ PublicAccessBlockConfiguration: PublicAccessBlockConfiguration | undefined;
3945
3969
  /**
3946
3970
  * <p>The account ID for the Amazon Web Services account whose <code>PublicAccessBlock</code> configuration you want
3947
3971
  * to set.</p>
3948
3972
  */
3949
3973
  AccountId?: string;
3950
- /**
3951
- * <p>The <code>PublicAccessBlock</code> configuration that you want to apply to the specified Amazon Web Services account.</p>
3952
- */
3953
- PublicAccessBlockConfiguration: PublicAccessBlockConfiguration | undefined;
3954
3974
  }
3955
3975
  export declare namespace PutPublicAccessBlockRequest {
3956
3976
  /**
@@ -392,6 +392,8 @@ export interface CreateBucketRequest {
392
392
 
393
393
  Bucket: string | undefined;
394
394
 
395
+ CreateBucketConfiguration?: CreateBucketConfiguration;
396
+
395
397
  GrantFullControl?: string;
396
398
 
397
399
  GrantRead?: string;
@@ -405,8 +407,6 @@ export interface CreateBucketRequest {
405
407
  ObjectLockEnabledForBucket?: boolean;
406
408
 
407
409
  OutpostId?: string;
408
-
409
- CreateBucketConfiguration?: CreateBucketConfiguration;
410
410
  }
411
411
  export declare namespace CreateBucketRequest {
412
412
 
@@ -1675,6 +1675,15 @@ export declare namespace StorageLensAwsOrg {
1675
1675
  const filterSensitiveLog: (obj: StorageLensAwsOrg) => any;
1676
1676
  }
1677
1677
 
1678
+ export interface CloudWatchMetrics {
1679
+
1680
+ IsEnabled: boolean | undefined;
1681
+ }
1682
+ export declare namespace CloudWatchMetrics {
1683
+
1684
+ const filterSensitiveLog: (obj: CloudWatchMetrics) => any;
1685
+ }
1686
+
1678
1687
  export interface SSEKMS {
1679
1688
 
1680
1689
  KeyId: string | undefined;
@@ -1725,7 +1734,9 @@ export declare namespace S3BucketDestination {
1725
1734
 
1726
1735
  export interface StorageLensDataExport {
1727
1736
 
1728
- S3BucketDestination: S3BucketDestination | undefined;
1737
+ S3BucketDestination?: S3BucketDestination;
1738
+
1739
+ CloudWatchMetrics?: CloudWatchMetrics;
1729
1740
  }
1730
1741
  export declare namespace StorageLensDataExport {
1731
1742
 
@@ -2187,9 +2198,9 @@ export declare namespace PutMultiRegionAccessPointPolicyResult {
2187
2198
  }
2188
2199
  export interface PutPublicAccessBlockRequest {
2189
2200
 
2190
- AccountId?: string;
2191
-
2192
2201
  PublicAccessBlockConfiguration: PublicAccessBlockConfiguration | undefined;
2202
+
2203
+ AccountId?: string;
2193
2204
  }
2194
2205
  export declare namespace PutPublicAccessBlockRequest {
2195
2206
 
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3-control",
3
3
  "description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
4
- "version": "3.41.0",
4
+ "version": "3.46.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
12
  "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
+ "clean:dist": "rimraf ./dist-*",
13
14
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "yarn test:unit",
16
16
  "test:unit": "ts-mocha test/**/*.spec.ts"
17
17
  },
@@ -22,59 +22,53 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "2.0.0",
24
24
  "@aws-crypto/sha256-js": "2.0.0",
25
- "@aws-sdk/client-sts": "3.41.0",
26
- "@aws-sdk/config-resolver": "3.40.0",
27
- "@aws-sdk/credential-provider-node": "3.41.0",
28
- "@aws-sdk/fetch-http-handler": "3.40.0",
29
- "@aws-sdk/hash-blob-browser": "3.40.0",
30
- "@aws-sdk/hash-node": "3.40.0",
31
- "@aws-sdk/hash-stream-node": "3.40.0",
32
- "@aws-sdk/invalid-dependency": "3.40.0",
33
- "@aws-sdk/md5-js": "3.40.0",
34
- "@aws-sdk/middleware-apply-body-checksum": "3.40.0",
35
- "@aws-sdk/middleware-content-length": "3.40.0",
36
- "@aws-sdk/middleware-host-header": "3.40.0",
37
- "@aws-sdk/middleware-logger": "3.40.0",
38
- "@aws-sdk/middleware-retry": "3.40.0",
39
- "@aws-sdk/middleware-sdk-s3-control": "3.41.0",
40
- "@aws-sdk/middleware-serde": "3.40.0",
41
- "@aws-sdk/middleware-signing": "3.40.0",
42
- "@aws-sdk/middleware-stack": "3.40.0",
43
- "@aws-sdk/middleware-user-agent": "3.40.0",
44
- "@aws-sdk/node-config-provider": "3.40.0",
45
- "@aws-sdk/node-http-handler": "3.40.0",
46
- "@aws-sdk/protocol-http": "3.40.0",
47
- "@aws-sdk/smithy-client": "3.41.0",
48
- "@aws-sdk/types": "3.40.0",
49
- "@aws-sdk/url-parser": "3.40.0",
50
- "@aws-sdk/util-base64-browser": "3.37.0",
51
- "@aws-sdk/util-base64-node": "3.37.0",
52
- "@aws-sdk/util-body-length-browser": "3.37.0",
53
- "@aws-sdk/util-body-length-node": "3.37.0",
54
- "@aws-sdk/util-user-agent-browser": "3.40.0",
55
- "@aws-sdk/util-user-agent-node": "3.40.0",
56
- "@aws-sdk/util-utf8-browser": "3.37.0",
57
- "@aws-sdk/util-utf8-node": "3.37.0",
58
- "@aws-sdk/xml-builder": "3.37.0",
25
+ "@aws-sdk/client-sts": "3.46.0",
26
+ "@aws-sdk/config-resolver": "3.46.0",
27
+ "@aws-sdk/credential-provider-node": "3.46.0",
28
+ "@aws-sdk/fetch-http-handler": "3.46.0",
29
+ "@aws-sdk/hash-blob-browser": "3.46.0",
30
+ "@aws-sdk/hash-node": "3.46.0",
31
+ "@aws-sdk/hash-stream-node": "3.46.0",
32
+ "@aws-sdk/invalid-dependency": "3.46.0",
33
+ "@aws-sdk/md5-js": "3.46.0",
34
+ "@aws-sdk/middleware-apply-body-checksum": "3.46.0",
35
+ "@aws-sdk/middleware-content-length": "3.46.0",
36
+ "@aws-sdk/middleware-host-header": "3.46.0",
37
+ "@aws-sdk/middleware-logger": "3.46.0",
38
+ "@aws-sdk/middleware-retry": "3.46.0",
39
+ "@aws-sdk/middleware-sdk-s3-control": "3.46.0",
40
+ "@aws-sdk/middleware-serde": "3.46.0",
41
+ "@aws-sdk/middleware-signing": "3.46.0",
42
+ "@aws-sdk/middleware-stack": "3.46.0",
43
+ "@aws-sdk/middleware-user-agent": "3.46.0",
44
+ "@aws-sdk/node-config-provider": "3.46.0",
45
+ "@aws-sdk/node-http-handler": "3.46.0",
46
+ "@aws-sdk/protocol-http": "3.46.0",
47
+ "@aws-sdk/smithy-client": "3.46.0",
48
+ "@aws-sdk/types": "3.46.0",
49
+ "@aws-sdk/url-parser": "3.46.0",
50
+ "@aws-sdk/util-base64-browser": "3.46.0",
51
+ "@aws-sdk/util-base64-node": "3.46.0",
52
+ "@aws-sdk/util-body-length-browser": "3.46.0",
53
+ "@aws-sdk/util-body-length-node": "3.46.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.46.0",
55
+ "@aws-sdk/util-user-agent-node": "3.46.0",
56
+ "@aws-sdk/util-utf8-browser": "3.46.0",
57
+ "@aws-sdk/util-utf8-node": "3.46.0",
58
+ "@aws-sdk/xml-builder": "3.46.0",
59
59
  "entities": "2.2.0",
60
60
  "fast-xml-parser": "3.19.0",
61
61
  "tslib": "^2.3.0",
62
62
  "uuid": "^8.3.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
65
+ "@aws-sdk/service-client-documentation-generator": "3.46.0",
66
66
  "@types/mocha": "^8.0.4",
67
67
  "@types/node": "^12.7.5",
68
- "@types/uuid": "^8.3.0",
69
- "downlevel-dts": "0.7.0",
70
- "jest": "^26.1.0",
71
- "rimraf": "^3.0.0",
72
- "ts-jest": "^26.4.1",
73
- "typedoc": "^0.19.2",
74
- "typescript": "~4.3.5"
68
+ "@types/uuid": "^8.3.0"
75
69
  },
76
70
  "engines": {
77
- "node": ">=10.0.0"
71
+ "node": ">=12.0.0"
78
72
  },
79
73
  "typesVersions": {
80
74
  "<4.0": {