@aws-sdk/client-s3 3.100.0 → 3.109.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 +33 -0
- package/dist-cjs/S3Client.js +2 -1
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +2 -0
- package/dist-cjs/protocols/Aws_restXml.js +63 -55
- package/dist-es/S3Client.js +3 -2
- package/dist-es/commands/WriteGetObjectResponseCommand.js +2 -0
- package/dist-es/protocols/Aws_restXml.js +63 -55
- package/dist-types/models/models_0.d.ts +5 -15
- package/dist-types/models/models_1.d.ts +1 -3
- package/dist-types/ts3.4/models/models_0.d.ts +5 -15
- package/dist-types/ts3.4/models/models_1.d.ts +1 -3
- package/package.json +46 -45
|
@@ -5307,13 +5307,13 @@ export var deserializeAws_restXmlDeleteObjectsCommand = function (output, contex
|
|
|
5307
5307
|
if (data.Deleted === "") {
|
|
5308
5308
|
contents.Deleted = [];
|
|
5309
5309
|
}
|
|
5310
|
-
if (data["Deleted"] !== undefined) {
|
|
5310
|
+
else if (data["Deleted"] !== undefined) {
|
|
5311
5311
|
contents.Deleted = deserializeAws_restXmlDeletedObjects(__getArrayIfSingleItem(data["Deleted"]), context);
|
|
5312
5312
|
}
|
|
5313
5313
|
if (data.Error === "") {
|
|
5314
5314
|
contents.Errors = [];
|
|
5315
5315
|
}
|
|
5316
|
-
if (data["Error"] !== undefined) {
|
|
5316
|
+
else if (data["Error"] !== undefined) {
|
|
5317
5317
|
contents.Errors = deserializeAws_restXmlErrors(__getArrayIfSingleItem(data["Error"]), context);
|
|
5318
5318
|
}
|
|
5319
5319
|
return [2, Promise.resolve(contents)];
|
|
@@ -5513,7 +5513,7 @@ export var deserializeAws_restXmlGetBucketAclCommand = function (output, context
|
|
|
5513
5513
|
if (data.AccessControlList === "") {
|
|
5514
5514
|
contents.Grants = [];
|
|
5515
5515
|
}
|
|
5516
|
-
if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
|
|
5516
|
+
else if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
|
|
5517
5517
|
contents.Grants = deserializeAws_restXmlGrants(__getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context);
|
|
5518
5518
|
}
|
|
5519
5519
|
if (data["Owner"] !== undefined) {
|
|
@@ -5618,7 +5618,7 @@ export var deserializeAws_restXmlGetBucketCorsCommand = function (output, contex
|
|
|
5618
5618
|
if (data.CORSRule === "") {
|
|
5619
5619
|
contents.CORSRules = [];
|
|
5620
5620
|
}
|
|
5621
|
-
if (data["CORSRule"] !== undefined) {
|
|
5621
|
+
else if (data["CORSRule"] !== undefined) {
|
|
5622
5622
|
contents.CORSRules = deserializeAws_restXmlCORSRules(__getArrayIfSingleItem(data["CORSRule"]), context);
|
|
5623
5623
|
}
|
|
5624
5624
|
return [2, Promise.resolve(contents)];
|
|
@@ -5816,7 +5816,7 @@ export var deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = functi
|
|
|
5816
5816
|
if (data.Rule === "") {
|
|
5817
5817
|
contents.Rules = [];
|
|
5818
5818
|
}
|
|
5819
|
-
if (data["Rule"] !== undefined) {
|
|
5819
|
+
else if (data["Rule"] !== undefined) {
|
|
5820
5820
|
contents.Rules = deserializeAws_restXmlLifecycleRules(__getArrayIfSingleItem(data["Rule"]), context);
|
|
5821
5821
|
}
|
|
5822
5822
|
return [2, Promise.resolve(contents)];
|
|
@@ -6026,19 +6026,19 @@ export var deserializeAws_restXmlGetBucketNotificationConfigurationCommand = fun
|
|
|
6026
6026
|
if (data.CloudFunctionConfiguration === "") {
|
|
6027
6027
|
contents.LambdaFunctionConfigurations = [];
|
|
6028
6028
|
}
|
|
6029
|
-
if (data["CloudFunctionConfiguration"] !== undefined) {
|
|
6029
|
+
else if (data["CloudFunctionConfiguration"] !== undefined) {
|
|
6030
6030
|
contents.LambdaFunctionConfigurations = deserializeAws_restXmlLambdaFunctionConfigurationList(__getArrayIfSingleItem(data["CloudFunctionConfiguration"]), context);
|
|
6031
6031
|
}
|
|
6032
6032
|
if (data.QueueConfiguration === "") {
|
|
6033
6033
|
contents.QueueConfigurations = [];
|
|
6034
6034
|
}
|
|
6035
|
-
if (data["QueueConfiguration"] !== undefined) {
|
|
6035
|
+
else if (data["QueueConfiguration"] !== undefined) {
|
|
6036
6036
|
contents.QueueConfigurations = deserializeAws_restXmlQueueConfigurationList(__getArrayIfSingleItem(data["QueueConfiguration"]), context);
|
|
6037
6037
|
}
|
|
6038
6038
|
if (data.TopicConfiguration === "") {
|
|
6039
6039
|
contents.TopicConfigurations = [];
|
|
6040
6040
|
}
|
|
6041
|
-
if (data["TopicConfiguration"] !== undefined) {
|
|
6041
|
+
else if (data["TopicConfiguration"] !== undefined) {
|
|
6042
6042
|
contents.TopicConfigurations = deserializeAws_restXmlTopicConfigurationList(__getArrayIfSingleItem(data["TopicConfiguration"]), context);
|
|
6043
6043
|
}
|
|
6044
6044
|
return [2, Promise.resolve(contents)];
|
|
@@ -6334,7 +6334,7 @@ export var deserializeAws_restXmlGetBucketTaggingCommand = function (output, con
|
|
|
6334
6334
|
if (data.TagSet === "") {
|
|
6335
6335
|
contents.TagSet = [];
|
|
6336
6336
|
}
|
|
6337
|
-
if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
|
|
6337
|
+
else if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
|
|
6338
6338
|
contents.TagSet = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(data["TagSet"]["Tag"]), context);
|
|
6339
6339
|
}
|
|
6340
6340
|
return [2, Promise.resolve(contents)];
|
|
@@ -6455,7 +6455,7 @@ export var deserializeAws_restXmlGetBucketWebsiteCommand = function (output, con
|
|
|
6455
6455
|
if (data.RoutingRules === "") {
|
|
6456
6456
|
contents.RoutingRules = [];
|
|
6457
6457
|
}
|
|
6458
|
-
if (data["RoutingRules"] !== undefined && data["RoutingRules"]["RoutingRule"] !== undefined) {
|
|
6458
|
+
else if (data["RoutingRules"] !== undefined && data["RoutingRules"]["RoutingRule"] !== undefined) {
|
|
6459
6459
|
contents.RoutingRules = deserializeAws_restXmlRoutingRules(__getArrayIfSingleItem(data["RoutingRules"]["RoutingRule"]), context);
|
|
6460
6460
|
}
|
|
6461
6461
|
return [2, Promise.resolve(contents)];
|
|
@@ -6710,7 +6710,7 @@ export var deserializeAws_restXmlGetObjectAclCommand = function (output, context
|
|
|
6710
6710
|
if (data.AccessControlList === "") {
|
|
6711
6711
|
contents.Grants = [];
|
|
6712
6712
|
}
|
|
6713
|
-
if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
|
|
6713
|
+
else if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
|
|
6714
6714
|
contents.Grants = deserializeAws_restXmlGrants(__getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context);
|
|
6715
6715
|
}
|
|
6716
6716
|
if (data["Owner"] !== undefined) {
|
|
@@ -7008,7 +7008,7 @@ export var deserializeAws_restXmlGetObjectTaggingCommand = function (output, con
|
|
|
7008
7008
|
if (data.TagSet === "") {
|
|
7009
7009
|
contents.TagSet = [];
|
|
7010
7010
|
}
|
|
7011
|
-
if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
|
|
7011
|
+
else if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
|
|
7012
7012
|
contents.TagSet = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(data["TagSet"]["Tag"]), context);
|
|
7013
7013
|
}
|
|
7014
7014
|
return [2, Promise.resolve(contents)];
|
|
@@ -7400,7 +7400,7 @@ export var deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand = func
|
|
|
7400
7400
|
if (data.AnalyticsConfiguration === "") {
|
|
7401
7401
|
contents.AnalyticsConfigurationList = [];
|
|
7402
7402
|
}
|
|
7403
|
-
if (data["AnalyticsConfiguration"] !== undefined) {
|
|
7403
|
+
else if (data["AnalyticsConfiguration"] !== undefined) {
|
|
7404
7404
|
contents.AnalyticsConfigurationList = deserializeAws_restXmlAnalyticsConfigurationList(__getArrayIfSingleItem(data["AnalyticsConfiguration"]), context);
|
|
7405
7405
|
}
|
|
7406
7406
|
if (data["ContinuationToken"] !== undefined) {
|
|
@@ -7469,7 +7469,7 @@ export var deserializeAws_restXmlListBucketIntelligentTieringConfigurationsComma
|
|
|
7469
7469
|
if (data.IntelligentTieringConfiguration === "") {
|
|
7470
7470
|
contents.IntelligentTieringConfigurationList = [];
|
|
7471
7471
|
}
|
|
7472
|
-
if (data["IntelligentTieringConfiguration"] !== undefined) {
|
|
7472
|
+
else if (data["IntelligentTieringConfiguration"] !== undefined) {
|
|
7473
7473
|
contents.IntelligentTieringConfigurationList = deserializeAws_restXmlIntelligentTieringConfigurationList(__getArrayIfSingleItem(data["IntelligentTieringConfiguration"]), context);
|
|
7474
7474
|
}
|
|
7475
7475
|
if (data["IsTruncated"] !== undefined) {
|
|
@@ -7535,7 +7535,7 @@ export var deserializeAws_restXmlListBucketInventoryConfigurationsCommand = func
|
|
|
7535
7535
|
if (data.InventoryConfiguration === "") {
|
|
7536
7536
|
contents.InventoryConfigurationList = [];
|
|
7537
7537
|
}
|
|
7538
|
-
if (data["InventoryConfiguration"] !== undefined) {
|
|
7538
|
+
else if (data["InventoryConfiguration"] !== undefined) {
|
|
7539
7539
|
contents.InventoryConfigurationList = deserializeAws_restXmlInventoryConfigurationList(__getArrayIfSingleItem(data["InventoryConfiguration"]), context);
|
|
7540
7540
|
}
|
|
7541
7541
|
if (data["IsTruncated"] !== undefined) {
|
|
@@ -7604,7 +7604,7 @@ export var deserializeAws_restXmlListBucketMetricsConfigurationsCommand = functi
|
|
|
7604
7604
|
if (data.MetricsConfiguration === "") {
|
|
7605
7605
|
contents.MetricsConfigurationList = [];
|
|
7606
7606
|
}
|
|
7607
|
-
if (data["MetricsConfiguration"] !== undefined) {
|
|
7607
|
+
else if (data["MetricsConfiguration"] !== undefined) {
|
|
7608
7608
|
contents.MetricsConfigurationList = deserializeAws_restXmlMetricsConfigurationList(__getArrayIfSingleItem(data["MetricsConfiguration"]), context);
|
|
7609
7609
|
}
|
|
7610
7610
|
if (data["NextContinuationToken"] !== undefined) {
|
|
@@ -7662,7 +7662,7 @@ export var deserializeAws_restXmlListBucketsCommand = function (output, context)
|
|
|
7662
7662
|
if (data.Buckets === "") {
|
|
7663
7663
|
contents.Buckets = [];
|
|
7664
7664
|
}
|
|
7665
|
-
if (data["Buckets"] !== undefined && data["Buckets"]["Bucket"] !== undefined) {
|
|
7665
|
+
else if (data["Buckets"] !== undefined && data["Buckets"]["Bucket"] !== undefined) {
|
|
7666
7666
|
contents.Buckets = deserializeAws_restXmlBuckets(__getArrayIfSingleItem(data["Buckets"]["Bucket"]), context);
|
|
7667
7667
|
}
|
|
7668
7668
|
if (data["Owner"] !== undefined) {
|
|
@@ -7733,7 +7733,7 @@ export var deserializeAws_restXmlListMultipartUploadsCommand = function (output,
|
|
|
7733
7733
|
if (data.CommonPrefixes === "") {
|
|
7734
7734
|
contents.CommonPrefixes = [];
|
|
7735
7735
|
}
|
|
7736
|
-
if (data["CommonPrefixes"] !== undefined) {
|
|
7736
|
+
else if (data["CommonPrefixes"] !== undefined) {
|
|
7737
7737
|
contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context);
|
|
7738
7738
|
}
|
|
7739
7739
|
if (data["Delimiter"] !== undefined) {
|
|
@@ -7766,7 +7766,7 @@ export var deserializeAws_restXmlListMultipartUploadsCommand = function (output,
|
|
|
7766
7766
|
if (data.Upload === "") {
|
|
7767
7767
|
contents.Uploads = [];
|
|
7768
7768
|
}
|
|
7769
|
-
if (data["Upload"] !== undefined) {
|
|
7769
|
+
else if (data["Upload"] !== undefined) {
|
|
7770
7770
|
contents.Uploads = deserializeAws_restXmlMultipartUploadList(__getArrayIfSingleItem(data["Upload"]), context);
|
|
7771
7771
|
}
|
|
7772
7772
|
return [2, Promise.resolve(contents)];
|
|
@@ -7829,13 +7829,13 @@ export var deserializeAws_restXmlListObjectsCommand = function (output, context)
|
|
|
7829
7829
|
if (data.CommonPrefixes === "") {
|
|
7830
7830
|
contents.CommonPrefixes = [];
|
|
7831
7831
|
}
|
|
7832
|
-
if (data["CommonPrefixes"] !== undefined) {
|
|
7832
|
+
else if (data["CommonPrefixes"] !== undefined) {
|
|
7833
7833
|
contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context);
|
|
7834
7834
|
}
|
|
7835
7835
|
if (data.Contents === "") {
|
|
7836
7836
|
contents.Contents = [];
|
|
7837
7837
|
}
|
|
7838
|
-
if (data["Contents"] !== undefined) {
|
|
7838
|
+
else if (data["Contents"] !== undefined) {
|
|
7839
7839
|
contents.Contents = deserializeAws_restXmlObjectList(__getArrayIfSingleItem(data["Contents"]), context);
|
|
7840
7840
|
}
|
|
7841
7841
|
if (data["Delimiter"] !== undefined) {
|
|
@@ -7929,13 +7929,13 @@ export var deserializeAws_restXmlListObjectsV2Command = function (output, contex
|
|
|
7929
7929
|
if (data.CommonPrefixes === "") {
|
|
7930
7930
|
contents.CommonPrefixes = [];
|
|
7931
7931
|
}
|
|
7932
|
-
if (data["CommonPrefixes"] !== undefined) {
|
|
7932
|
+
else if (data["CommonPrefixes"] !== undefined) {
|
|
7933
7933
|
contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context);
|
|
7934
7934
|
}
|
|
7935
7935
|
if (data.Contents === "") {
|
|
7936
7936
|
contents.Contents = [];
|
|
7937
7937
|
}
|
|
7938
|
-
if (data["Contents"] !== undefined) {
|
|
7938
|
+
else if (data["Contents"] !== undefined) {
|
|
7939
7939
|
contents.Contents = deserializeAws_restXmlObjectList(__getArrayIfSingleItem(data["Contents"]), context);
|
|
7940
7940
|
}
|
|
7941
7941
|
if (data["ContinuationToken"] !== undefined) {
|
|
@@ -8036,13 +8036,13 @@ export var deserializeAws_restXmlListObjectVersionsCommand = function (output, c
|
|
|
8036
8036
|
if (data.CommonPrefixes === "") {
|
|
8037
8037
|
contents.CommonPrefixes = [];
|
|
8038
8038
|
}
|
|
8039
|
-
if (data["CommonPrefixes"] !== undefined) {
|
|
8039
|
+
else if (data["CommonPrefixes"] !== undefined) {
|
|
8040
8040
|
contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(__getArrayIfSingleItem(data["CommonPrefixes"]), context);
|
|
8041
8041
|
}
|
|
8042
8042
|
if (data.DeleteMarker === "") {
|
|
8043
8043
|
contents.DeleteMarkers = [];
|
|
8044
8044
|
}
|
|
8045
|
-
if (data["DeleteMarker"] !== undefined) {
|
|
8045
|
+
else if (data["DeleteMarker"] !== undefined) {
|
|
8046
8046
|
contents.DeleteMarkers = deserializeAws_restXmlDeleteMarkers(__getArrayIfSingleItem(data["DeleteMarker"]), context);
|
|
8047
8047
|
}
|
|
8048
8048
|
if (data["Delimiter"] !== undefined) {
|
|
@@ -8078,7 +8078,7 @@ export var deserializeAws_restXmlListObjectVersionsCommand = function (output, c
|
|
|
8078
8078
|
if (data.Version === "") {
|
|
8079
8079
|
contents.Versions = [];
|
|
8080
8080
|
}
|
|
8081
|
-
if (data["Version"] !== undefined) {
|
|
8081
|
+
else if (data["Version"] !== undefined) {
|
|
8082
8082
|
contents.Versions = deserializeAws_restXmlObjectVersionList(__getArrayIfSingleItem(data["Version"]), context);
|
|
8083
8083
|
}
|
|
8084
8084
|
return [2, Promise.resolve(contents)];
|
|
@@ -8182,7 +8182,7 @@ export var deserializeAws_restXmlListPartsCommand = function (output, context) {
|
|
|
8182
8182
|
if (data.Part === "") {
|
|
8183
8183
|
contents.Parts = [];
|
|
8184
8184
|
}
|
|
8185
|
-
if (data["Part"] !== undefined) {
|
|
8185
|
+
else if (data["Part"] !== undefined) {
|
|
8186
8186
|
contents.Parts = deserializeAws_restXmlParts(__getArrayIfSingleItem(data["Part"]), context);
|
|
8187
8187
|
}
|
|
8188
8188
|
if (data["StorageClass"] !== undefined) {
|
|
@@ -12046,7 +12046,7 @@ var deserializeAws_restXmlAnalyticsAndOperator = function (output, context) {
|
|
|
12046
12046
|
if (output.Tag === "") {
|
|
12047
12047
|
contents.Tags = [];
|
|
12048
12048
|
}
|
|
12049
|
-
if (output["Tag"] !== undefined) {
|
|
12049
|
+
else if (output["Tag"] !== undefined) {
|
|
12050
12050
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
12051
12051
|
}
|
|
12052
12052
|
return contents;
|
|
@@ -12060,7 +12060,9 @@ var deserializeAws_restXmlAnalyticsConfiguration = function (output, context) {
|
|
|
12060
12060
|
if (output["Id"] !== undefined) {
|
|
12061
12061
|
contents.Id = __expectString(output["Id"]);
|
|
12062
12062
|
}
|
|
12063
|
-
if (output
|
|
12063
|
+
if (output.Filter === "") {
|
|
12064
|
+
}
|
|
12065
|
+
else if (output["Filter"] !== undefined) {
|
|
12064
12066
|
contents.Filter = deserializeAws_restXmlAnalyticsFilter(__expectUnion(output["Filter"]), context);
|
|
12065
12067
|
}
|
|
12066
12068
|
if (output["StorageClassAnalysis"] !== undefined) {
|
|
@@ -12289,25 +12291,25 @@ var deserializeAws_restXmlCORSRule = function (output, context) {
|
|
|
12289
12291
|
if (output.AllowedHeader === "") {
|
|
12290
12292
|
contents.AllowedHeaders = [];
|
|
12291
12293
|
}
|
|
12292
|
-
if (output["AllowedHeader"] !== undefined) {
|
|
12294
|
+
else if (output["AllowedHeader"] !== undefined) {
|
|
12293
12295
|
contents.AllowedHeaders = deserializeAws_restXmlAllowedHeaders(__getArrayIfSingleItem(output["AllowedHeader"]), context);
|
|
12294
12296
|
}
|
|
12295
12297
|
if (output.AllowedMethod === "") {
|
|
12296
12298
|
contents.AllowedMethods = [];
|
|
12297
12299
|
}
|
|
12298
|
-
if (output["AllowedMethod"] !== undefined) {
|
|
12300
|
+
else if (output["AllowedMethod"] !== undefined) {
|
|
12299
12301
|
contents.AllowedMethods = deserializeAws_restXmlAllowedMethods(__getArrayIfSingleItem(output["AllowedMethod"]), context);
|
|
12300
12302
|
}
|
|
12301
12303
|
if (output.AllowedOrigin === "") {
|
|
12302
12304
|
contents.AllowedOrigins = [];
|
|
12303
12305
|
}
|
|
12304
|
-
if (output["AllowedOrigin"] !== undefined) {
|
|
12306
|
+
else if (output["AllowedOrigin"] !== undefined) {
|
|
12305
12307
|
contents.AllowedOrigins = deserializeAws_restXmlAllowedOrigins(__getArrayIfSingleItem(output["AllowedOrigin"]), context);
|
|
12306
12308
|
}
|
|
12307
12309
|
if (output.ExposeHeader === "") {
|
|
12308
12310
|
contents.ExposeHeaders = [];
|
|
12309
12311
|
}
|
|
12310
|
-
if (output["ExposeHeader"] !== undefined) {
|
|
12312
|
+
else if (output["ExposeHeader"] !== undefined) {
|
|
12311
12313
|
contents.ExposeHeaders = deserializeAws_restXmlExposeHeaders(__getArrayIfSingleItem(output["ExposeHeader"]), context);
|
|
12312
12314
|
}
|
|
12313
12315
|
if (output["MaxAgeSeconds"] !== undefined) {
|
|
@@ -12586,7 +12588,7 @@ var deserializeAws_restXmlGetObjectAttributesParts = function (output, context)
|
|
|
12586
12588
|
if (output.Part === "") {
|
|
12587
12589
|
contents.Parts = [];
|
|
12588
12590
|
}
|
|
12589
|
-
if (output["Part"] !== undefined) {
|
|
12591
|
+
else if (output["Part"] !== undefined) {
|
|
12590
12592
|
contents.Parts = deserializeAws_restXmlPartsList(__getArrayIfSingleItem(output["Part"]), context);
|
|
12591
12593
|
}
|
|
12592
12594
|
return contents;
|
|
@@ -12672,7 +12674,7 @@ var deserializeAws_restXmlIntelligentTieringAndOperator = function (output, cont
|
|
|
12672
12674
|
if (output.Tag === "") {
|
|
12673
12675
|
contents.Tags = [];
|
|
12674
12676
|
}
|
|
12675
|
-
if (output["Tag"] !== undefined) {
|
|
12677
|
+
else if (output["Tag"] !== undefined) {
|
|
12676
12678
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
12677
12679
|
}
|
|
12678
12680
|
return contents;
|
|
@@ -12696,7 +12698,7 @@ var deserializeAws_restXmlIntelligentTieringConfiguration = function (output, co
|
|
|
12696
12698
|
if (output.Tiering === "") {
|
|
12697
12699
|
contents.Tierings = [];
|
|
12698
12700
|
}
|
|
12699
|
-
if (output["Tiering"] !== undefined) {
|
|
12701
|
+
else if (output["Tiering"] !== undefined) {
|
|
12700
12702
|
contents.Tierings = deserializeAws_restXmlTieringList(__getArrayIfSingleItem(output["Tiering"]), context);
|
|
12701
12703
|
}
|
|
12702
12704
|
return contents;
|
|
@@ -12756,7 +12758,7 @@ var deserializeAws_restXmlInventoryConfiguration = function (output, context) {
|
|
|
12756
12758
|
if (output.OptionalFields === "") {
|
|
12757
12759
|
contents.OptionalFields = [];
|
|
12758
12760
|
}
|
|
12759
|
-
if (output["OptionalFields"] !== undefined && output["OptionalFields"]["Field"] !== undefined) {
|
|
12761
|
+
else if (output["OptionalFields"] !== undefined && output["OptionalFields"]["Field"] !== undefined) {
|
|
12760
12762
|
contents.OptionalFields = deserializeAws_restXmlInventoryOptionalFields(__getArrayIfSingleItem(output["OptionalFields"]["Field"]), context);
|
|
12761
12763
|
}
|
|
12762
12764
|
if (output["Schedule"] !== undefined) {
|
|
@@ -12865,7 +12867,7 @@ var deserializeAws_restXmlLambdaFunctionConfiguration = function (output, contex
|
|
|
12865
12867
|
if (output.Event === "") {
|
|
12866
12868
|
contents.Events = [];
|
|
12867
12869
|
}
|
|
12868
|
-
if (output["Event"] !== undefined) {
|
|
12870
|
+
else if (output["Event"] !== undefined) {
|
|
12869
12871
|
contents.Events = deserializeAws_restXmlEventList(__getArrayIfSingleItem(output["Event"]), context);
|
|
12870
12872
|
}
|
|
12871
12873
|
if (output["Filter"] !== undefined) {
|
|
@@ -12921,7 +12923,9 @@ var deserializeAws_restXmlLifecycleRule = function (output, context) {
|
|
|
12921
12923
|
if (output["Prefix"] !== undefined) {
|
|
12922
12924
|
contents.Prefix = __expectString(output["Prefix"]);
|
|
12923
12925
|
}
|
|
12924
|
-
if (output
|
|
12926
|
+
if (output.Filter === "") {
|
|
12927
|
+
}
|
|
12928
|
+
else if (output["Filter"] !== undefined) {
|
|
12925
12929
|
contents.Filter = deserializeAws_restXmlLifecycleRuleFilter(__expectUnion(output["Filter"]), context);
|
|
12926
12930
|
}
|
|
12927
12931
|
if (output["Status"] !== undefined) {
|
|
@@ -12930,13 +12934,13 @@ var deserializeAws_restXmlLifecycleRule = function (output, context) {
|
|
|
12930
12934
|
if (output.Transition === "") {
|
|
12931
12935
|
contents.Transitions = [];
|
|
12932
12936
|
}
|
|
12933
|
-
if (output["Transition"] !== undefined) {
|
|
12937
|
+
else if (output["Transition"] !== undefined) {
|
|
12934
12938
|
contents.Transitions = deserializeAws_restXmlTransitionList(__getArrayIfSingleItem(output["Transition"]), context);
|
|
12935
12939
|
}
|
|
12936
12940
|
if (output.NoncurrentVersionTransition === "") {
|
|
12937
12941
|
contents.NoncurrentVersionTransitions = [];
|
|
12938
12942
|
}
|
|
12939
|
-
if (output["NoncurrentVersionTransition"] !== undefined) {
|
|
12943
|
+
else if (output["NoncurrentVersionTransition"] !== undefined) {
|
|
12940
12944
|
contents.NoncurrentVersionTransitions = deserializeAws_restXmlNoncurrentVersionTransitionList(__getArrayIfSingleItem(output["NoncurrentVersionTransition"]), context);
|
|
12941
12945
|
}
|
|
12942
12946
|
if (output["NoncurrentVersionExpiration"] !== undefined) {
|
|
@@ -12960,7 +12964,7 @@ var deserializeAws_restXmlLifecycleRuleAndOperator = function (output, context)
|
|
|
12960
12964
|
if (output.Tag === "") {
|
|
12961
12965
|
contents.Tags = [];
|
|
12962
12966
|
}
|
|
12963
|
-
if (output["Tag"] !== undefined) {
|
|
12967
|
+
else if (output["Tag"] !== undefined) {
|
|
12964
12968
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
12965
12969
|
}
|
|
12966
12970
|
if (output["ObjectSizeGreaterThan"] !== undefined) {
|
|
@@ -13021,7 +13025,7 @@ var deserializeAws_restXmlLoggingEnabled = function (output, context) {
|
|
|
13021
13025
|
if (output.TargetGrants === "") {
|
|
13022
13026
|
contents.TargetGrants = [];
|
|
13023
13027
|
}
|
|
13024
|
-
if (output["TargetGrants"] !== undefined && output["TargetGrants"]["Grant"] !== undefined) {
|
|
13028
|
+
else if (output["TargetGrants"] !== undefined && output["TargetGrants"]["Grant"] !== undefined) {
|
|
13025
13029
|
contents.TargetGrants = deserializeAws_restXmlTargetGrants(__getArrayIfSingleItem(output["TargetGrants"]["Grant"]), context);
|
|
13026
13030
|
}
|
|
13027
13031
|
if (output["TargetPrefix"] !== undefined) {
|
|
@@ -13054,7 +13058,7 @@ var deserializeAws_restXmlMetricsAndOperator = function (output, context) {
|
|
|
13054
13058
|
if (output.Tag === "") {
|
|
13055
13059
|
contents.Tags = [];
|
|
13056
13060
|
}
|
|
13057
|
-
if (output["Tag"] !== undefined) {
|
|
13061
|
+
else if (output["Tag"] !== undefined) {
|
|
13058
13062
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
13059
13063
|
}
|
|
13060
13064
|
if (output["AccessPointArn"] !== undefined) {
|
|
@@ -13070,7 +13074,9 @@ var deserializeAws_restXmlMetricsConfiguration = function (output, context) {
|
|
|
13070
13074
|
if (output["Id"] !== undefined) {
|
|
13071
13075
|
contents.Id = __expectString(output["Id"]);
|
|
13072
13076
|
}
|
|
13073
|
-
if (output
|
|
13077
|
+
if (output.Filter === "") {
|
|
13078
|
+
}
|
|
13079
|
+
else if (output["Filter"] !== undefined) {
|
|
13074
13080
|
contents.Filter = deserializeAws_restXmlMetricsFilter(__expectUnion(output["Filter"]), context);
|
|
13075
13081
|
}
|
|
13076
13082
|
return contents;
|
|
@@ -13222,7 +13228,7 @@ var deserializeAws_restXml_Object = function (output, context) {
|
|
|
13222
13228
|
if (output.ChecksumAlgorithm === "") {
|
|
13223
13229
|
contents.ChecksumAlgorithm = [];
|
|
13224
13230
|
}
|
|
13225
|
-
if (output["ChecksumAlgorithm"] !== undefined) {
|
|
13231
|
+
else if (output["ChecksumAlgorithm"] !== undefined) {
|
|
13226
13232
|
contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList(__getArrayIfSingleItem(output["ChecksumAlgorithm"]), context);
|
|
13227
13233
|
}
|
|
13228
13234
|
if (output["Size"] !== undefined) {
|
|
@@ -13337,7 +13343,7 @@ var deserializeAws_restXmlObjectVersion = function (output, context) {
|
|
|
13337
13343
|
if (output.ChecksumAlgorithm === "") {
|
|
13338
13344
|
contents.ChecksumAlgorithm = [];
|
|
13339
13345
|
}
|
|
13340
|
-
if (output["ChecksumAlgorithm"] !== undefined) {
|
|
13346
|
+
else if (output["ChecksumAlgorithm"] !== undefined) {
|
|
13341
13347
|
contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList(__getArrayIfSingleItem(output["ChecksumAlgorithm"]), context);
|
|
13342
13348
|
}
|
|
13343
13349
|
if (output["Size"] !== undefined) {
|
|
@@ -13393,7 +13399,7 @@ var deserializeAws_restXmlOwnershipControls = function (output, context) {
|
|
|
13393
13399
|
if (output.Rule === "") {
|
|
13394
13400
|
contents.Rules = [];
|
|
13395
13401
|
}
|
|
13396
|
-
if (output["Rule"] !== undefined) {
|
|
13402
|
+
else if (output["Rule"] !== undefined) {
|
|
13397
13403
|
contents.Rules = deserializeAws_restXmlOwnershipControlsRules(__getArrayIfSingleItem(output["Rule"]), context);
|
|
13398
13404
|
}
|
|
13399
13405
|
return contents;
|
|
@@ -13546,7 +13552,7 @@ var deserializeAws_restXmlQueueConfiguration = function (output, context) {
|
|
|
13546
13552
|
if (output.Event === "") {
|
|
13547
13553
|
contents.Events = [];
|
|
13548
13554
|
}
|
|
13549
|
-
if (output["Event"] !== undefined) {
|
|
13555
|
+
else if (output["Event"] !== undefined) {
|
|
13550
13556
|
contents.Events = deserializeAws_restXmlEventList(__getArrayIfSingleItem(output["Event"]), context);
|
|
13551
13557
|
}
|
|
13552
13558
|
if (output["Filter"] !== undefined) {
|
|
@@ -13631,7 +13637,7 @@ var deserializeAws_restXmlReplicationConfiguration = function (output, context)
|
|
|
13631
13637
|
if (output.Rule === "") {
|
|
13632
13638
|
contents.Rules = [];
|
|
13633
13639
|
}
|
|
13634
|
-
if (output["Rule"] !== undefined) {
|
|
13640
|
+
else if (output["Rule"] !== undefined) {
|
|
13635
13641
|
contents.Rules = deserializeAws_restXmlReplicationRules(__getArrayIfSingleItem(output["Rule"]), context);
|
|
13636
13642
|
}
|
|
13637
13643
|
return contents;
|
|
@@ -13657,7 +13663,9 @@ var deserializeAws_restXmlReplicationRule = function (output, context) {
|
|
|
13657
13663
|
if (output["Prefix"] !== undefined) {
|
|
13658
13664
|
contents.Prefix = __expectString(output["Prefix"]);
|
|
13659
13665
|
}
|
|
13660
|
-
if (output
|
|
13666
|
+
if (output.Filter === "") {
|
|
13667
|
+
}
|
|
13668
|
+
else if (output["Filter"] !== undefined) {
|
|
13661
13669
|
contents.Filter = deserializeAws_restXmlReplicationRuleFilter(__expectUnion(output["Filter"]), context);
|
|
13662
13670
|
}
|
|
13663
13671
|
if (output["Status"] !== undefined) {
|
|
@@ -13688,7 +13696,7 @@ var deserializeAws_restXmlReplicationRuleAndOperator = function (output, context
|
|
|
13688
13696
|
if (output.Tag === "") {
|
|
13689
13697
|
contents.Tags = [];
|
|
13690
13698
|
}
|
|
13691
|
-
if (output["Tag"] !== undefined) {
|
|
13699
|
+
else if (output["Tag"] !== undefined) {
|
|
13692
13700
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
13693
13701
|
}
|
|
13694
13702
|
return contents;
|
|
@@ -13773,7 +13781,7 @@ var deserializeAws_restXmlS3KeyFilter = function (output, context) {
|
|
|
13773
13781
|
if (output.FilterRule === "") {
|
|
13774
13782
|
contents.FilterRules = [];
|
|
13775
13783
|
}
|
|
13776
|
-
if (output["FilterRule"] !== undefined) {
|
|
13784
|
+
else if (output["FilterRule"] !== undefined) {
|
|
13777
13785
|
contents.FilterRules = deserializeAws_restXmlFilterRuleList(__getArrayIfSingleItem(output["FilterRule"]), context);
|
|
13778
13786
|
}
|
|
13779
13787
|
return contents;
|
|
@@ -13826,7 +13834,7 @@ var deserializeAws_restXmlServerSideEncryptionConfiguration = function (output,
|
|
|
13826
13834
|
if (output.Rule === "") {
|
|
13827
13835
|
contents.Rules = [];
|
|
13828
13836
|
}
|
|
13829
|
-
if (output["Rule"] !== undefined) {
|
|
13837
|
+
else if (output["Rule"] !== undefined) {
|
|
13830
13838
|
contents.Rules = deserializeAws_restXmlServerSideEncryptionRules(__getArrayIfSingleItem(output["Rule"]), context);
|
|
13831
13839
|
}
|
|
13832
13840
|
return contents;
|
|
@@ -14022,7 +14030,7 @@ var deserializeAws_restXmlTopicConfiguration = function (output, context) {
|
|
|
14022
14030
|
if (output.Event === "") {
|
|
14023
14031
|
contents.Events = [];
|
|
14024
14032
|
}
|
|
14025
|
-
if (output["Event"] !== undefined) {
|
|
14033
|
+
else if (output["Event"] !== undefined) {
|
|
14026
14034
|
contents.Events = deserializeAws_restXmlEventList(__getArrayIfSingleItem(output["Event"]), context);
|
|
14027
14035
|
}
|
|
14028
14036
|
if (output["Filter"] !== undefined) {
|
|
@@ -725,9 +725,7 @@ export interface CopyObjectRequest {
|
|
|
725
725
|
/**
|
|
726
726
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
727
727
|
*/
|
|
728
|
-
Metadata?:
|
|
729
|
-
[key: string]: string;
|
|
730
|
-
};
|
|
728
|
+
Metadata?: Record<string, string>;
|
|
731
729
|
/**
|
|
732
730
|
* <p>Specifies whether the metadata is copied from the source object or replaced with
|
|
733
731
|
* metadata provided in the request.</p>
|
|
@@ -1131,9 +1129,7 @@ export interface CreateMultipartUploadRequest {
|
|
|
1131
1129
|
/**
|
|
1132
1130
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
1133
1131
|
*/
|
|
1134
|
-
Metadata?:
|
|
1135
|
-
[key: string]: string;
|
|
1136
|
-
};
|
|
1132
|
+
Metadata?: Record<string, string>;
|
|
1137
1133
|
/**
|
|
1138
1134
|
* <p>The server-side encryption algorithm used when storing this object in Amazon S3 (for example,
|
|
1139
1135
|
* AES256, aws:kms).</p>
|
|
@@ -6433,9 +6429,7 @@ export interface GetObjectOutput {
|
|
|
6433
6429
|
/**
|
|
6434
6430
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
6435
6431
|
*/
|
|
6436
|
-
Metadata?:
|
|
6437
|
-
[key: string]: string;
|
|
6438
|
-
};
|
|
6432
|
+
Metadata?: Record<string, string>;
|
|
6439
6433
|
/**
|
|
6440
6434
|
* <p>If server-side encryption with a customer-provided encryption key was requested, the
|
|
6441
6435
|
* response will include this header confirming the encryption algorithm used.</p>
|
|
@@ -7548,9 +7542,7 @@ export interface HeadObjectOutput {
|
|
|
7548
7542
|
/**
|
|
7549
7543
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
7550
7544
|
*/
|
|
7551
|
-
Metadata?:
|
|
7552
|
-
[key: string]: string;
|
|
7553
|
-
};
|
|
7545
|
+
Metadata?: Record<string, string>;
|
|
7554
7546
|
/**
|
|
7555
7547
|
* <p>If server-side encryption with a customer-provided encryption key was requested, the
|
|
7556
7548
|
* response will include this header confirming the encryption algorithm used.</p>
|
|
@@ -10015,9 +10007,7 @@ export interface PutObjectRequest {
|
|
|
10015
10007
|
/**
|
|
10016
10008
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
10017
10009
|
*/
|
|
10018
|
-
Metadata?:
|
|
10019
|
-
[key: string]: string;
|
|
10020
|
-
};
|
|
10010
|
+
Metadata?: Record<string, string>;
|
|
10021
10011
|
/**
|
|
10022
10012
|
* <p>The server-side encryption algorithm used when storing this object in Amazon S3 (for example,
|
|
10023
10013
|
* AES256, aws:kms).</p>
|
|
@@ -1671,9 +1671,7 @@ export interface WriteGetObjectResponseRequest {
|
|
|
1671
1671
|
/**
|
|
1672
1672
|
* <p>A map of metadata to store with the object in S3.</p>
|
|
1673
1673
|
*/
|
|
1674
|
-
Metadata?:
|
|
1675
|
-
[key: string]: string;
|
|
1676
|
-
};
|
|
1674
|
+
Metadata?: Record<string, string>;
|
|
1677
1675
|
/**
|
|
1678
1676
|
* <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more
|
|
1679
1677
|
* information about S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object Lock</a>.</p>
|
|
@@ -310,9 +310,7 @@ export interface CopyObjectRequest {
|
|
|
310
310
|
|
|
311
311
|
Key: string | undefined;
|
|
312
312
|
|
|
313
|
-
Metadata?:
|
|
314
|
-
[key: string]: string;
|
|
315
|
-
};
|
|
313
|
+
Metadata?: Record<string, string>;
|
|
316
314
|
|
|
317
315
|
MetadataDirective?: MetadataDirective | string;
|
|
318
316
|
|
|
@@ -487,9 +485,7 @@ export interface CreateMultipartUploadRequest {
|
|
|
487
485
|
|
|
488
486
|
Key: string | undefined;
|
|
489
487
|
|
|
490
|
-
Metadata?:
|
|
491
|
-
[key: string]: string;
|
|
492
|
-
};
|
|
488
|
+
Metadata?: Record<string, string>;
|
|
493
489
|
|
|
494
490
|
ServerSideEncryption?: ServerSideEncryption | string;
|
|
495
491
|
|
|
@@ -2220,9 +2216,7 @@ export interface GetObjectOutput {
|
|
|
2220
2216
|
|
|
2221
2217
|
ServerSideEncryption?: ServerSideEncryption | string;
|
|
2222
2218
|
|
|
2223
|
-
Metadata?:
|
|
2224
|
-
[key: string]: string;
|
|
2225
|
-
};
|
|
2219
|
+
Metadata?: Record<string, string>;
|
|
2226
2220
|
|
|
2227
2221
|
SSECustomerAlgorithm?: string;
|
|
2228
2222
|
|
|
@@ -2727,9 +2721,7 @@ export interface HeadObjectOutput {
|
|
|
2727
2721
|
|
|
2728
2722
|
ServerSideEncryption?: ServerSideEncryption | string;
|
|
2729
2723
|
|
|
2730
|
-
Metadata?:
|
|
2731
|
-
[key: string]: string;
|
|
2732
|
-
};
|
|
2724
|
+
Metadata?: Record<string, string>;
|
|
2733
2725
|
|
|
2734
2726
|
SSECustomerAlgorithm?: string;
|
|
2735
2727
|
|
|
@@ -3763,9 +3755,7 @@ export interface PutObjectRequest {
|
|
|
3763
3755
|
|
|
3764
3756
|
Key: string | undefined;
|
|
3765
3757
|
|
|
3766
|
-
Metadata?:
|
|
3767
|
-
[key: string]: string;
|
|
3768
|
-
};
|
|
3758
|
+
Metadata?: Record<string, string>;
|
|
3769
3759
|
|
|
3770
3760
|
ServerSideEncryption?: ServerSideEncryption | string;
|
|
3771
3761
|
|