@aws-sdk/client-s3-control 3.888.0 → 3.890.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.
@@ -3,8 +3,8 @@ import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, isSerializableHeaderValue, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
5
5
  import { v4 as generateIdempotencyToken } from "uuid";
6
- import { BadRequestException, BucketAlreadyExists, BucketAlreadyOwnedByYou, IdempotencyException, InternalServiceException, InvalidNextTokenException, InvalidRequestException, JobManifestGenerator, NoSuchPublicAccessBlockConfiguration, NotFoundException, ObjectLambdaContentTransformation, TooManyRequestsException, } from "../models/models_0";
7
- import { JobStatusException, TooManyTagsException, } from "../models/models_1";
6
+ import { BadRequestException, BucketAlreadyExists, BucketAlreadyOwnedByYou, IdempotencyException, InternalServiceException, JobManifestGenerator, NoSuchPublicAccessBlockConfiguration, NotFoundException, ObjectEncryptionFilter, ObjectLambdaContentTransformation, TooManyRequestsException, } from "../models/models_0";
7
+ import { InvalidNextTokenException, InvalidRequestException, JobStatusException, TooManyTagsException, } from "../models/models_1";
8
8
  import { S3ControlServiceException as __BaseException } from "../models/S3ControlServiceException";
9
9
  export const se_AssociateAccessGrantsIdentityCenterCommand = async (input, context) => {
10
10
  const b = rb(input, context);
@@ -3226,6 +3226,13 @@ const se_DetailedStatusCodesMetrics = (input, context) => {
3226
3226
  }
3227
3227
  return bn;
3228
3228
  };
3229
+ const se_DSSEKMSFilter = (input, context) => {
3230
+ const bn = new __XmlNode(_DSSEKMSF);
3231
+ if (input[_KKA] != null) {
3232
+ bn.c(__XmlNode.of(_NEKKAS, input[_KKA]).n(_KKA));
3233
+ }
3234
+ return bn;
3235
+ };
3229
3236
  const se_EncryptionConfiguration = (input, context) => {
3230
3237
  const bn = new __XmlNode(_EC);
3231
3238
  bn.cc(input, _RKKID);
@@ -3323,6 +3330,7 @@ const se_JobManifestGeneratorFilter = (input, context) => {
3323
3330
  bn.c(__XmlNode.of(_OSLTB, String(input[_OSLTB])).n(_OSLTB));
3324
3331
  }
3325
3332
  bn.lc(input, "MatchAnyStorageClass", "MatchAnyStorageClass", () => se_StorageClassList(input[_MASC], context));
3333
+ bn.lc(input, "MatchAnyObjectEncryption", "MatchAnyObjectEncryption", () => se_ObjectEncryptionFilterList(input[_MAOE], context));
3326
3334
  return bn;
3327
3335
  };
3328
3336
  const se_JobManifestLocation = (input, context) => {
@@ -3600,6 +3608,55 @@ const se_NonEmptyMaxLength1024StringList = (input, context) => {
3600
3608
  return n.n(_m);
3601
3609
  });
3602
3610
  };
3611
+ const se_NotSSEFilter = (input, context) => {
3612
+ const bn = new __XmlNode(_NSSEF);
3613
+ return bn;
3614
+ };
3615
+ const se_ObjectEncryptionFilter = (input, context) => {
3616
+ const bn = new __XmlNode(_OEF);
3617
+ ObjectEncryptionFilter.visit(input, {
3618
+ SSES3: (value) => {
3619
+ if (input[_SSES] != null) {
3620
+ bn.c(se_SSES3Filter(value, context).n(_SS));
3621
+ }
3622
+ },
3623
+ SSEKMS: (value) => {
3624
+ if (input[_SSEKMS] != null) {
3625
+ bn.c(se_SSEKMSFilter(value, context).n(_SK));
3626
+ }
3627
+ },
3628
+ DSSEKMS: (value) => {
3629
+ if (input[_DSSEKMS] != null) {
3630
+ bn.c(se_DSSEKMSFilter(value, context).n(_DK));
3631
+ }
3632
+ },
3633
+ SSEC: (value) => {
3634
+ if (input[_SSEC] != null) {
3635
+ bn.c(se_SSECFilter(value, context).n(_SC_));
3636
+ }
3637
+ },
3638
+ NOTSSE: (value) => {
3639
+ if (input[_NOTSSE] != null) {
3640
+ bn.c(se_NotSSEFilter(value, context).n(_NS));
3641
+ }
3642
+ },
3643
+ _: (name, value) => {
3644
+ if (!(value instanceof __XmlNode || value instanceof __XmlText)) {
3645
+ throw new Error("Unable to serialize unknown union members in XML.");
3646
+ }
3647
+ bn.c(new __XmlNode(name).c(value));
3648
+ },
3649
+ });
3650
+ return bn;
3651
+ };
3652
+ const se_ObjectEncryptionFilterList = (input, context) => {
3653
+ return input
3654
+ .filter((e) => e != null)
3655
+ .map((entry) => {
3656
+ const n = se_ObjectEncryptionFilter(entry, context);
3657
+ return n.n(_OE);
3658
+ });
3659
+ };
3603
3660
  const se_ObjectLambdaAllowedFeaturesList = (input, context) => {
3604
3661
  return input
3605
3662
  .filter((e) => e != null)
@@ -4179,6 +4236,10 @@ const se_SourceSelectionCriteria = (input, context) => {
4179
4236
  }
4180
4237
  return bn;
4181
4238
  };
4239
+ const se_SSECFilter = (input, context) => {
4240
+ const bn = new __XmlNode(_SSECF);
4241
+ return bn;
4242
+ };
4182
4243
  const se_SSEKMS = (input, context) => {
4183
4244
  const bn = new __XmlNode(_SK);
4184
4245
  if (input[_KI] != null) {
@@ -4200,6 +4261,16 @@ const se_SSEKMSEncryption = (input, context) => {
4200
4261
  }
4201
4262
  return bn;
4202
4263
  };
4264
+ const se_SSEKMSFilter = (input, context) => {
4265
+ const bn = new __XmlNode(_SSEKMSF);
4266
+ if (input[_KKA] != null) {
4267
+ bn.c(__XmlNode.of(_NEKKAS, input[_KKA]).n(_KKA));
4268
+ }
4269
+ if (input[_BKE] != null) {
4270
+ bn.c(__XmlNode.of(_Bo, String(input[_BKE])).n(_BKE));
4271
+ }
4272
+ return bn;
4273
+ };
4203
4274
  const se_SSES3 = (input, context) => {
4204
4275
  const bn = new __XmlNode(_SS);
4205
4276
  return bn;
@@ -4208,6 +4279,10 @@ const se_SSES3Encryption = (input, context) => {
4208
4279
  const bn = new __XmlNode(_SS);
4209
4280
  return bn;
4210
4281
  };
4282
+ const se_SSES3Filter = (input, context) => {
4283
+ const bn = new __XmlNode(_SSESF);
4284
+ return bn;
4285
+ };
4211
4286
  const se_StorageClassList = (input, context) => {
4212
4287
  return input
4213
4288
  .filter((e) => e != null)
@@ -4756,6 +4831,13 @@ const de_DetailedStatusCodesMetrics = (output, context) => {
4756
4831
  }
4757
4832
  return contents;
4758
4833
  };
4834
+ const de_DSSEKMSFilter = (output, context) => {
4835
+ const contents = {};
4836
+ if (output[_KKA] != null) {
4837
+ contents[_KKA] = __expectString(output[_KKA]);
4838
+ }
4839
+ return contents;
4840
+ };
4759
4841
  const de_EncryptionConfiguration = (output, context) => {
4760
4842
  const contents = {};
4761
4843
  if (output[_RKKID] != null) {
@@ -5013,6 +5095,12 @@ const de_JobManifestGeneratorFilter = (output, context) => {
5013
5095
  else if (output[_MASC] != null && output[_MASC][_m] != null) {
5014
5096
  contents[_MASC] = de_StorageClassList(__getArrayIfSingleItem(output[_MASC][_m]), context);
5015
5097
  }
5098
+ if (output.MatchAnyObjectEncryption === "") {
5099
+ contents[_MAOE] = [];
5100
+ }
5101
+ else if (output[_MAOE] != null && output[_MAOE][_OE] != null) {
5102
+ contents[_MAOE] = de_ObjectEncryptionFilterList(__getArrayIfSingleItem(output[_MAOE][_OE]), context);
5103
+ }
5016
5104
  return contents;
5017
5105
  };
5018
5106
  const de_JobManifestLocation = (output, context) => {
@@ -5531,6 +5619,45 @@ const de_NonEmptyMaxLength1024StringList = (output, context) => {
5531
5619
  return __expectString(entry);
5532
5620
  });
5533
5621
  };
5622
+ const de_NotSSEFilter = (output, context) => {
5623
+ const contents = {};
5624
+ return contents;
5625
+ };
5626
+ const de_ObjectEncryptionFilter = (output, context) => {
5627
+ if (output[_SS] != null) {
5628
+ return {
5629
+ SSES3: de_SSES3Filter(output[_SS], context),
5630
+ };
5631
+ }
5632
+ if (output[_SK] != null) {
5633
+ return {
5634
+ SSEKMS: de_SSEKMSFilter(output[_SK], context),
5635
+ };
5636
+ }
5637
+ if (output[_DK] != null) {
5638
+ return {
5639
+ DSSEKMS: de_DSSEKMSFilter(output[_DK], context),
5640
+ };
5641
+ }
5642
+ if (output[_SC_] != null) {
5643
+ return {
5644
+ SSEC: de_SSECFilter(output[_SC_], context),
5645
+ };
5646
+ }
5647
+ if (output[_NS] != null) {
5648
+ return {
5649
+ NOTSSE: de_NotSSEFilter(output[_NS], context),
5650
+ };
5651
+ }
5652
+ return { $unknown: Object.entries(output)[0] };
5653
+ };
5654
+ const de_ObjectEncryptionFilterList = (output, context) => {
5655
+ return (output || [])
5656
+ .filter((e) => e != null)
5657
+ .map((entry) => {
5658
+ return de_ObjectEncryptionFilter(__expectUnion(entry), context);
5659
+ });
5660
+ };
5534
5661
  const de_ObjectLambdaAccessPoint = (output, context) => {
5535
5662
  const contents = {};
5536
5663
  if (output[_N] != null) {
@@ -6267,6 +6394,10 @@ const de_SourceSelectionCriteria = (output, context) => {
6267
6394
  }
6268
6395
  return contents;
6269
6396
  };
6397
+ const de_SSECFilter = (output, context) => {
6398
+ const contents = {};
6399
+ return contents;
6400
+ };
6270
6401
  const de_SSEKMS = (output, context) => {
6271
6402
  const contents = {};
6272
6403
  if (output[_KI] != null) {
@@ -6288,6 +6419,16 @@ const de_SSEKMSEncryption = (output, context) => {
6288
6419
  }
6289
6420
  return contents;
6290
6421
  };
6422
+ const de_SSEKMSFilter = (output, context) => {
6423
+ const contents = {};
6424
+ if (output[_KKA] != null) {
6425
+ contents[_KKA] = __expectString(output[_KKA]);
6426
+ }
6427
+ if (output[_BKE] != null) {
6428
+ contents[_BKE] = __parseBoolean(output[_BKE]);
6429
+ }
6430
+ return contents;
6431
+ };
6291
6432
  const de_SSES3 = (output, context) => {
6292
6433
  const contents = {};
6293
6434
  return contents;
@@ -6296,6 +6437,10 @@ const de_SSES3Encryption = (output, context) => {
6296
6437
  const contents = {};
6297
6438
  return contents;
6298
6439
  };
6440
+ const de_SSES3Filter = (output, context) => {
6441
+ const contents = {};
6442
+ return contents;
6443
+ };
6299
6444
  const de_StorageClassList = (output, context) => {
6300
6445
  return (output || [])
6301
6446
  .filter((e) => e != null)
@@ -6695,6 +6840,7 @@ const _DAI = "DaysAfterInitiation";
6695
6840
  const _DB = "DirectoryBucket";
6696
6841
  const _DE = "DataExport";
6697
6842
  const _DGT = "DaysGreaterThan";
6843
+ const _DK = "DSSE-KMS";
6698
6844
  const _DLT = "DaysLessThan";
6699
6845
  const _DMR = "DeleteMarkerReplication";
6700
6846
  const _DMRAPI = "DeleteMultiRegionAccessPointInput";
@@ -6704,6 +6850,8 @@ const _DN = "DisplayName";
6704
6850
  const _DS = "DurationSeconds";
6705
6851
  const _DSCM = "DetailedStatusCodesMetrics";
6706
6852
  const _DSI = "DataSourceId";
6853
+ const _DSSEKMS = "DSSEKMS";
6854
+ const _DSSEKMSF = "DSSEKMSFilter";
6707
6855
  const _DST = "DataSourceType";
6708
6856
  const _Da = "Date";
6709
6857
  const _Day = "Days";
@@ -6786,6 +6934,7 @@ const _JS = "JobStatuses";
6786
6934
  const _Jo = "Jobs";
6787
6935
  const _K = "Key";
6788
6936
  const _KI = "KeyId";
6937
+ const _KKA = "KmsKeyArn";
6789
6938
  const _KKAS = "KmsKeyArnString";
6790
6939
  const _KNC = "KeyNameConstraint";
6791
6940
  const _L = "Location";
@@ -6800,6 +6949,7 @@ const _LRAO = "LifecycleRuleAndOperator";
6800
6949
  const _LRF = "LifecycleRuleFilter";
6801
6950
  const _LS = "LocationScope";
6802
6951
  const _M = "Manifest";
6952
+ const _MAOE = "MatchAnyObjectEncryption";
6803
6953
  const _MAP = "MatchAnyPrefix";
6804
6954
  const _MAS = "MatchAnySuffix";
6805
6955
  const _MASC = "MatchAnyStorageClass";
@@ -6835,6 +6985,7 @@ const _Mo = "Mode";
6835
6985
  const _Mr = "Mrap";
6836
6986
  const _N = "Name";
6837
6987
  const _ND = "NoncurrentDays";
6988
+ const _NEKKAS = "NonEmptyKmsKeyArnString";
6838
6989
  const _NEMLS = "NonEmptyMaxLength64String";
6839
6990
  const _NEMLSo = "NonEmptyMaxLength256String";
6840
6991
  const _NEMLSon = "NonEmptyMaxLength1024String";
@@ -6845,6 +6996,9 @@ const _NOM = "NewObjectMetadata";
6845
6996
  const _NOT = "NewObjectTagging";
6846
6997
  const _NOTF = "NumberOfTasksFailed";
6847
6998
  const _NOTS = "NumberOfTasksSucceeded";
6999
+ const _NOTSSE = "NOTSSE";
7000
+ const _NS = "NOT-SSE";
7001
+ const _NSSEF = "NotSSEFilter";
6848
7002
  const _NT = "NextToken";
6849
7003
  const _NVC = "NoncurrentVersionCount";
6850
7004
  const _NVE = "NoncurrentVersionExpiration";
@@ -6854,6 +7008,8 @@ const _O = "Operation";
6854
7008
  const _OA = "ObjectArn";
6855
7009
  const _OAV = "ObjectAgeValue";
6856
7010
  const _OCT = "ObjectCreationTime";
7011
+ const _OE = "ObjectEncryption";
7012
+ const _OEF = "ObjectEncryptionFilter";
6857
7013
  const _OI = "OutpostId";
6858
7014
  const _OLAF = "ObjectLambdaAllowedFeature";
6859
7015
  const _OLAP = "ObjectLambdaAccessPoint";
@@ -6965,6 +7121,7 @@ const _SCL = "S3ContentLength";
6965
7121
  const _SCOC = "S3ComputeObjectChecksum";
6966
7122
  const _SCOCO = "S3ComputeObjectChecksumOperation";
6967
7123
  const _SCOO = "S3CopyObjectOperation";
7124
+ const _SC_ = "SSE-C";
6968
7125
  const _SCe = "SelectionCriteria";
6969
7126
  const _SCu = "SuspendedCause";
6970
7127
  const _SD = "SuspendedDate";
@@ -7029,9 +7186,13 @@ const _SSC = "SourceSelectionCriteria";
7029
7186
  const _SSCt = "S3StorageClass";
7030
7187
  const _SSEA = "SSEAlgorithm";
7031
7188
  const _SSEAKKI = "SSEAwsKmsKeyId";
7189
+ const _SSEC = "SSEC";
7190
+ const _SSECF = "SSECFilter";
7032
7191
  const _SSEKMS = "SSEKMS";
7192
+ const _SSEKMSF = "SSEKMSFilter";
7033
7193
  const _SSEKMSKI = "SSEKMSKeyId";
7034
7194
  const _SSES = "SSES3";
7195
+ const _SSESF = "SSES3Filter";
7035
7196
  const _SSOAO = "S3SetObjectAclOperation";
7036
7197
  const _SSOLHO = "S3SetObjectLegalHoldOperation";
7037
7198
  const _SSORO = "S3SetObjectRetentionOperation";
@@ -258,6 +258,20 @@ declare const CreateJobCommand_base: {
258
258
  * MatchAnyStorageClass: [ // StorageClassList
259
259
  * "STANDARD" || "STANDARD_IA" || "ONEZONE_IA" || "GLACIER" || "INTELLIGENT_TIERING" || "DEEP_ARCHIVE" || "GLACIER_IR",
260
260
  * ],
261
+ * MatchAnyObjectEncryption: [ // ObjectEncryptionFilterList
262
+ * { // ObjectEncryptionFilter Union: only one key present
263
+ * SSES3: {},
264
+ * SSEKMS: { // SSEKMSFilter
265
+ * KmsKeyArn: "STRING_VALUE",
266
+ * BucketKeyEnabled: true || false,
267
+ * },
268
+ * DSSEKMS: { // DSSEKMSFilter
269
+ * KmsKeyArn: "STRING_VALUE",
270
+ * },
271
+ * SSEC: {},
272
+ * NOTSSE: {},
273
+ * },
274
+ * ],
261
275
  * },
262
276
  * EnableManifestOutput: true || false, // required
263
277
  * },
@@ -270,6 +270,20 @@ declare const DescribeJobCommand_base: {
270
270
  * // MatchAnyStorageClass: [ // StorageClassList
271
271
  * // "STANDARD" || "STANDARD_IA" || "ONEZONE_IA" || "GLACIER" || "INTELLIGENT_TIERING" || "DEEP_ARCHIVE" || "GLACIER_IR",
272
272
  * // ],
273
+ * // MatchAnyObjectEncryption: [ // ObjectEncryptionFilterList
274
+ * // { // ObjectEncryptionFilter Union: only one key present
275
+ * // SSES3: {},
276
+ * // SSEKMS: { // SSEKMSFilter
277
+ * // KmsKeyArn: "STRING_VALUE",
278
+ * // BucketKeyEnabled: true || false,
279
+ * // },
280
+ * // DSSEKMS: { // DSSEKMSFilter
281
+ * // KmsKeyArn: "STRING_VALUE",
282
+ * // },
283
+ * // SSEC: {},
284
+ * // NOTSSE: {},
285
+ * // },
286
+ * // ],
273
287
  * // },
274
288
  * // EnableManifestOutput: true || false, // required
275
289
  * // },
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListAccessPointsForObjectLambdaRequest, ListAccessPointsForObjectLambdaResult } from "../models/models_0";
3
+ import { ListAccessPointsForObjectLambdaRequest } from "../models/models_0";
4
+ import { ListAccessPointsForObjectLambdaResult } from "../models/models_1";
4
5
  import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
5
6
  /**
6
7
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListCallerAccessGrantsRequest, ListCallerAccessGrantsResult } from "../models/models_0";
3
+ import { ListCallerAccessGrantsRequest, ListCallerAccessGrantsResult } from "../models/models_1";
4
4
  import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
5
5
  /**
6
6
  * @public