@aws-sdk/client-s3 3.669.0 → 3.673.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/dist-cjs/index.js +46 -121
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +1 -1
- package/dist-es/models/models_0.js +0 -28
- package/dist-es/protocols/Aws_restXml.js +46 -91
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +41 -50
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
- package/dist-types/commands/ListBucketsCommand.d.ts +4 -0
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +1 -1
- package/dist-types/commands/RestoreObjectCommand.d.ts +0 -4
- package/dist-types/commands/SelectObjectContentCommand.d.ts +0 -4
- package/dist-types/models/models_0.d.ts +53 -116
- package/dist-types/models/models_1.d.ts +20 -35
- package/dist-types/ts3.4/models/models_0.d.ts +14 -102
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -127,7 +127,6 @@ __export(src_exports, {
|
|
|
127
127
|
InventoryOptionalField: () => InventoryOptionalField,
|
|
128
128
|
InventoryS3BucketDestinationFilterSensitiveLog: () => InventoryS3BucketDestinationFilterSensitiveLog,
|
|
129
129
|
JSONType: () => JSONType,
|
|
130
|
-
LifecycleRuleFilter: () => LifecycleRuleFilter,
|
|
131
130
|
ListBucketAnalyticsConfigurationsCommand: () => ListBucketAnalyticsConfigurationsCommand,
|
|
132
131
|
ListBucketIntelligentTieringConfigurationsCommand: () => ListBucketIntelligentTieringConfigurationsCommand,
|
|
133
132
|
ListBucketInventoryConfigurationsCommand: () => ListBucketInventoryConfigurationsCommand,
|
|
@@ -200,7 +199,6 @@ __export(src_exports, {
|
|
|
200
199
|
PutPublicAccessBlockCommand: () => PutPublicAccessBlockCommand,
|
|
201
200
|
QuoteFields: () => QuoteFields,
|
|
202
201
|
ReplicaModificationsStatus: () => ReplicaModificationsStatus,
|
|
203
|
-
ReplicationRuleFilter: () => ReplicationRuleFilter,
|
|
204
202
|
ReplicationRuleStatus: () => ReplicationRuleStatus,
|
|
205
203
|
ReplicationStatus: () => ReplicationStatus,
|
|
206
204
|
ReplicationTimeStatus: () => ReplicationTimeStatus,
|
|
@@ -594,22 +592,6 @@ var InventoryFrequency = {
|
|
|
594
592
|
Daily: "Daily",
|
|
595
593
|
Weekly: "Weekly"
|
|
596
594
|
};
|
|
597
|
-
var LifecycleRuleFilter;
|
|
598
|
-
((LifecycleRuleFilter2) => {
|
|
599
|
-
LifecycleRuleFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
600
|
-
if (value.Prefix !== void 0)
|
|
601
|
-
return visitor.Prefix(value.Prefix);
|
|
602
|
-
if (value.Tag !== void 0)
|
|
603
|
-
return visitor.Tag(value.Tag);
|
|
604
|
-
if (value.ObjectSizeGreaterThan !== void 0)
|
|
605
|
-
return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan);
|
|
606
|
-
if (value.ObjectSizeLessThan !== void 0)
|
|
607
|
-
return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan);
|
|
608
|
-
if (value.And !== void 0)
|
|
609
|
-
return visitor.And(value.And);
|
|
610
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
611
|
-
}, "visit");
|
|
612
|
-
})(LifecycleRuleFilter || (LifecycleRuleFilter = {}));
|
|
613
595
|
var TransitionStorageClass = {
|
|
614
596
|
DEEP_ARCHIVE: "DEEP_ARCHIVE",
|
|
615
597
|
GLACIER: "GLACIER",
|
|
@@ -698,18 +680,6 @@ var ExistingObjectReplicationStatus = {
|
|
|
698
680
|
Disabled: "Disabled",
|
|
699
681
|
Enabled: "Enabled"
|
|
700
682
|
};
|
|
701
|
-
var ReplicationRuleFilter;
|
|
702
|
-
((ReplicationRuleFilter2) => {
|
|
703
|
-
ReplicationRuleFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
704
|
-
if (value.Prefix !== void 0)
|
|
705
|
-
return visitor.Prefix(value.Prefix);
|
|
706
|
-
if (value.Tag !== void 0)
|
|
707
|
-
return visitor.Tag(value.Tag);
|
|
708
|
-
if (value.And !== void 0)
|
|
709
|
-
return visitor.And(value.And);
|
|
710
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
711
|
-
}, "visit");
|
|
712
|
-
})(ReplicationRuleFilter || (ReplicationRuleFilter = {}));
|
|
713
683
|
var ReplicaModificationsStatus = {
|
|
714
684
|
Disabled: "Disabled",
|
|
715
685
|
Enabled: "Enabled"
|
|
@@ -2159,7 +2129,9 @@ var se_ListBucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2159
2129
|
const query = (0, import_smithy_client.map)({
|
|
2160
2130
|
[_xi]: [, "ListBuckets"],
|
|
2161
2131
|
[_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()],
|
|
2162
|
-
[_ct_]: [, input[_CTo]]
|
|
2132
|
+
[_ct_]: [, input[_CTo]],
|
|
2133
|
+
[_pr]: [, input[_P]],
|
|
2134
|
+
[_br]: [, input[_BR]]
|
|
2163
2135
|
});
|
|
2164
2136
|
let body;
|
|
2165
2137
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -4106,6 +4078,9 @@ var de_ListBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4106
4078
|
if (data[_O] != null) {
|
|
4107
4079
|
contents[_O] = de_Owner(data[_O], context);
|
|
4108
4080
|
}
|
|
4081
|
+
if (data[_P] != null) {
|
|
4082
|
+
contents[_P] = (0, import_smithy_client.expectString)(data[_P]);
|
|
4083
|
+
}
|
|
4109
4084
|
return contents;
|
|
4110
4085
|
}, "de_ListBucketsCommand");
|
|
4111
4086
|
var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
@@ -5489,39 +5464,19 @@ var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
|
|
|
5489
5464
|
}, "se_LifecycleRuleAndOperator");
|
|
5490
5465
|
var se_LifecycleRuleFilter = /* @__PURE__ */ __name((input, context) => {
|
|
5491
5466
|
const bn = new import_xml_builder.XmlNode(_LRF);
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(value)).n(_OSGT));
|
|
5506
|
-
}
|
|
5507
|
-
},
|
|
5508
|
-
ObjectSizeLessThan: (value) => {
|
|
5509
|
-
if (input[_OSLT] != null) {
|
|
5510
|
-
bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(value)).n(_OSLT));
|
|
5511
|
-
}
|
|
5512
|
-
},
|
|
5513
|
-
And: (value) => {
|
|
5514
|
-
if (input[_A] != null) {
|
|
5515
|
-
bn.c(se_LifecycleRuleAndOperator(value, context).n(_A));
|
|
5516
|
-
}
|
|
5517
|
-
},
|
|
5518
|
-
_: (name, value) => {
|
|
5519
|
-
if (!(value instanceof import_xml_builder.XmlNode || value instanceof import_xml_builder.XmlText)) {
|
|
5520
|
-
throw new Error("Unable to serialize unknown union members in XML.");
|
|
5521
|
-
}
|
|
5522
|
-
bn.c(new import_xml_builder.XmlNode(name).c(value));
|
|
5523
|
-
}
|
|
5524
|
-
});
|
|
5467
|
+
bn.cc(input, _P);
|
|
5468
|
+
if (input[_Ta] != null) {
|
|
5469
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
5470
|
+
}
|
|
5471
|
+
if (input[_OSGT] != null) {
|
|
5472
|
+
bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
|
|
5473
|
+
}
|
|
5474
|
+
if (input[_OSLT] != null) {
|
|
5475
|
+
bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
|
|
5476
|
+
}
|
|
5477
|
+
if (input[_A] != null) {
|
|
5478
|
+
bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A));
|
|
5479
|
+
}
|
|
5525
5480
|
return bn;
|
|
5526
5481
|
}, "se_LifecycleRuleFilter");
|
|
5527
5482
|
var se_LifecycleRules = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -5865,29 +5820,13 @@ var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
|
|
|
5865
5820
|
}, "se_ReplicationRuleAndOperator");
|
|
5866
5821
|
var se_ReplicationRuleFilter = /* @__PURE__ */ __name((input, context) => {
|
|
5867
5822
|
const bn = new import_xml_builder.XmlNode(_RRF);
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
if (input[_Ta] != null) {
|
|
5876
|
-
bn.c(se_Tag(value, context).n(_Ta));
|
|
5877
|
-
}
|
|
5878
|
-
},
|
|
5879
|
-
And: (value) => {
|
|
5880
|
-
if (input[_A] != null) {
|
|
5881
|
-
bn.c(se_ReplicationRuleAndOperator(value, context).n(_A));
|
|
5882
|
-
}
|
|
5883
|
-
},
|
|
5884
|
-
_: (name, value) => {
|
|
5885
|
-
if (!(value instanceof import_xml_builder.XmlNode || value instanceof import_xml_builder.XmlText)) {
|
|
5886
|
-
throw new Error("Unable to serialize unknown union members in XML.");
|
|
5887
|
-
}
|
|
5888
|
-
bn.c(new import_xml_builder.XmlNode(name).c(value));
|
|
5889
|
-
}
|
|
5890
|
-
});
|
|
5823
|
+
bn.cc(input, _P);
|
|
5824
|
+
if (input[_Ta] != null) {
|
|
5825
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
5826
|
+
}
|
|
5827
|
+
if (input[_A] != null) {
|
|
5828
|
+
bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A));
|
|
5829
|
+
}
|
|
5891
5830
|
return bn;
|
|
5892
5831
|
}, "se_ReplicationRuleFilter");
|
|
5893
5832
|
var se_ReplicationRules = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -6330,6 +6269,9 @@ var de_Bucket = /* @__PURE__ */ __name((output, context) => {
|
|
|
6330
6269
|
if (output[_CDr] != null) {
|
|
6331
6270
|
contents[_CDr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CDr]));
|
|
6332
6271
|
}
|
|
6272
|
+
if (output[_BR] != null) {
|
|
6273
|
+
contents[_BR] = (0, import_smithy_client.expectString)(output[_BR]);
|
|
6274
|
+
}
|
|
6333
6275
|
return contents;
|
|
6334
6276
|
}, "de_Bucket");
|
|
6335
6277
|
var de_Buckets = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -6885,9 +6827,8 @@ var de_LifecycleRule = /* @__PURE__ */ __name((output, context) => {
|
|
|
6885
6827
|
if (output[_P] != null) {
|
|
6886
6828
|
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
6887
6829
|
}
|
|
6888
|
-
if (output
|
|
6889
|
-
|
|
6890
|
-
contents[_F] = de_LifecycleRuleFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
|
|
6830
|
+
if (output[_F] != null) {
|
|
6831
|
+
contents[_F] = de_LifecycleRuleFilter(output[_F], context);
|
|
6891
6832
|
}
|
|
6892
6833
|
if (output[_S] != null) {
|
|
6893
6834
|
contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
|
|
@@ -6929,32 +6870,23 @@ var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => {
|
|
|
6929
6870
|
return contents;
|
|
6930
6871
|
}, "de_LifecycleRuleAndOperator");
|
|
6931
6872
|
var de_LifecycleRuleFilter = /* @__PURE__ */ __name((output, context) => {
|
|
6873
|
+
const contents = {};
|
|
6932
6874
|
if (output[_P] != null) {
|
|
6933
|
-
|
|
6934
|
-
Prefix: (0, import_smithy_client.expectString)(output[_P])
|
|
6935
|
-
};
|
|
6875
|
+
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
6936
6876
|
}
|
|
6937
6877
|
if (output[_Ta] != null) {
|
|
6938
|
-
|
|
6939
|
-
Tag: de_Tag(output[_Ta], context)
|
|
6940
|
-
};
|
|
6878
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
6941
6879
|
}
|
|
6942
6880
|
if (output[_OSGT] != null) {
|
|
6943
|
-
|
|
6944
|
-
ObjectSizeGreaterThan: (0, import_smithy_client.strictParseLong)(output[_OSGT])
|
|
6945
|
-
};
|
|
6881
|
+
contents[_OSGT] = (0, import_smithy_client.strictParseLong)(output[_OSGT]);
|
|
6946
6882
|
}
|
|
6947
6883
|
if (output[_OSLT] != null) {
|
|
6948
|
-
|
|
6949
|
-
ObjectSizeLessThan: (0, import_smithy_client.strictParseLong)(output[_OSLT])
|
|
6950
|
-
};
|
|
6884
|
+
contents[_OSLT] = (0, import_smithy_client.strictParseLong)(output[_OSLT]);
|
|
6951
6885
|
}
|
|
6952
6886
|
if (output[_A] != null) {
|
|
6953
|
-
|
|
6954
|
-
And: de_LifecycleRuleAndOperator(output[_A], context)
|
|
6955
|
-
};
|
|
6887
|
+
contents[_A] = de_LifecycleRuleAndOperator(output[_A], context);
|
|
6956
6888
|
}
|
|
6957
|
-
return
|
|
6889
|
+
return contents;
|
|
6958
6890
|
}, "de_LifecycleRuleFilter");
|
|
6959
6891
|
var de_LifecycleRules = /* @__PURE__ */ __name((output, context) => {
|
|
6960
6892
|
return (output || []).filter((e) => e != null).map((entry) => {
|
|
@@ -7434,9 +7366,8 @@ var de_ReplicationRule = /* @__PURE__ */ __name((output, context) => {
|
|
|
7434
7366
|
if (output[_P] != null) {
|
|
7435
7367
|
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
7436
7368
|
}
|
|
7437
|
-
if (output
|
|
7438
|
-
|
|
7439
|
-
contents[_F] = de_ReplicationRuleFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
|
|
7369
|
+
if (output[_F] != null) {
|
|
7370
|
+
contents[_F] = de_ReplicationRuleFilter(output[_F], context);
|
|
7440
7371
|
}
|
|
7441
7372
|
if (output[_S] != null) {
|
|
7442
7373
|
contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
|
|
@@ -7468,22 +7399,17 @@ var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) =>
|
|
|
7468
7399
|
return contents;
|
|
7469
7400
|
}, "de_ReplicationRuleAndOperator");
|
|
7470
7401
|
var de_ReplicationRuleFilter = /* @__PURE__ */ __name((output, context) => {
|
|
7402
|
+
const contents = {};
|
|
7471
7403
|
if (output[_P] != null) {
|
|
7472
|
-
|
|
7473
|
-
Prefix: (0, import_smithy_client.expectString)(output[_P])
|
|
7474
|
-
};
|
|
7404
|
+
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
7475
7405
|
}
|
|
7476
7406
|
if (output[_Ta] != null) {
|
|
7477
|
-
|
|
7478
|
-
Tag: de_Tag(output[_Ta], context)
|
|
7479
|
-
};
|
|
7407
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
7480
7408
|
}
|
|
7481
7409
|
if (output[_A] != null) {
|
|
7482
|
-
|
|
7483
|
-
And: de_ReplicationRuleAndOperator(output[_A], context)
|
|
7484
|
-
};
|
|
7410
|
+
contents[_A] = de_ReplicationRuleAndOperator(output[_A], context);
|
|
7485
7411
|
}
|
|
7486
|
-
return
|
|
7412
|
+
return contents;
|
|
7487
7413
|
}, "de_ReplicationRuleFilter");
|
|
7488
7414
|
var de_ReplicationRules = /* @__PURE__ */ __name((output, context) => {
|
|
7489
7415
|
return (output || []).filter((e) => e != null).map((entry) => {
|
|
@@ -8220,6 +8146,7 @@ var _ac = "accelerate";
|
|
|
8220
8146
|
var _acl = "acl";
|
|
8221
8147
|
var _ar = "accept-ranges";
|
|
8222
8148
|
var _at = "attributes";
|
|
8149
|
+
var _br = "bucket-region";
|
|
8223
8150
|
var _c = "cors";
|
|
8224
8151
|
var _cc = "cache-control";
|
|
8225
8152
|
var _cd = "content-disposition";
|
|
@@ -10883,7 +10810,6 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
10883
10810
|
InventoryIncludedObjectVersions,
|
|
10884
10811
|
InventoryOptionalField,
|
|
10885
10812
|
InventoryFrequency,
|
|
10886
|
-
LifecycleRuleFilter,
|
|
10887
10813
|
TransitionStorageClass,
|
|
10888
10814
|
ExpirationStatus,
|
|
10889
10815
|
TransitionDefaultMinimumObjectSize,
|
|
@@ -10896,7 +10822,6 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
10896
10822
|
MetricsStatus,
|
|
10897
10823
|
ReplicationTimeStatus,
|
|
10898
10824
|
ExistingObjectReplicationStatus,
|
|
10899
|
-
ReplicationRuleFilter,
|
|
10900
10825
|
ReplicaModificationsStatus,
|
|
10901
10826
|
SseKmsEncryptedObjectsStatus,
|
|
10902
10827
|
ReplicationRuleStatus,
|
|
@@ -29,7 +29,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
(0, util_user_agent_browser_1.
|
|
32
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
34
34
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
35
35
|
md5: config?.md5 ?? md5_js_1.Md5,
|
|
@@ -36,7 +36,7 @@ const getRuntimeConfig = (config) => {
|
|
|
36
36
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
37
37
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
38
38
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
39
|
-
(0, util_user_agent_node_1.
|
|
39
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
40
40
|
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS),
|
|
41
41
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
42
42
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
@@ -244,22 +244,6 @@ export const InventoryFrequency = {
|
|
|
244
244
|
Daily: "Daily",
|
|
245
245
|
Weekly: "Weekly",
|
|
246
246
|
};
|
|
247
|
-
export var LifecycleRuleFilter;
|
|
248
|
-
(function (LifecycleRuleFilter) {
|
|
249
|
-
LifecycleRuleFilter.visit = (value, visitor) => {
|
|
250
|
-
if (value.Prefix !== undefined)
|
|
251
|
-
return visitor.Prefix(value.Prefix);
|
|
252
|
-
if (value.Tag !== undefined)
|
|
253
|
-
return visitor.Tag(value.Tag);
|
|
254
|
-
if (value.ObjectSizeGreaterThan !== undefined)
|
|
255
|
-
return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan);
|
|
256
|
-
if (value.ObjectSizeLessThan !== undefined)
|
|
257
|
-
return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan);
|
|
258
|
-
if (value.And !== undefined)
|
|
259
|
-
return visitor.And(value.And);
|
|
260
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
261
|
-
};
|
|
262
|
-
})(LifecycleRuleFilter || (LifecycleRuleFilter = {}));
|
|
263
247
|
export const TransitionStorageClass = {
|
|
264
248
|
DEEP_ARCHIVE: "DEEP_ARCHIVE",
|
|
265
249
|
GLACIER: "GLACIER",
|
|
@@ -348,18 +332,6 @@ export const ExistingObjectReplicationStatus = {
|
|
|
348
332
|
Disabled: "Disabled",
|
|
349
333
|
Enabled: "Enabled",
|
|
350
334
|
};
|
|
351
|
-
export var ReplicationRuleFilter;
|
|
352
|
-
(function (ReplicationRuleFilter) {
|
|
353
|
-
ReplicationRuleFilter.visit = (value, visitor) => {
|
|
354
|
-
if (value.Prefix !== undefined)
|
|
355
|
-
return visitor.Prefix(value.Prefix);
|
|
356
|
-
if (value.Tag !== undefined)
|
|
357
|
-
return visitor.Tag(value.Tag);
|
|
358
|
-
if (value.And !== undefined)
|
|
359
|
-
return visitor.And(value.And);
|
|
360
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
361
|
-
};
|
|
362
|
-
})(ReplicationRuleFilter || (ReplicationRuleFilter = {}));
|
|
363
335
|
export const ReplicaModificationsStatus = {
|
|
364
336
|
Disabled: "Disabled",
|
|
365
337
|
Enabled: "Enabled",
|
|
@@ -3,7 +3,7 @@ import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder
|
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
5
5
|
import { collectBody, dateToUtcString as __dateToUtcString, 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, parseRfc7231DateTime as __parseRfc7231DateTime, quoteHeader as __quoteHeader, serializeDateTime as __serializeDateTime, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
|
|
6
|
-
import { AnalyticsFilter, BucketAlreadyExists, BucketAlreadyOwnedByYou, InvalidObjectState,
|
|
6
|
+
import { AnalyticsFilter, BucketAlreadyExists, BucketAlreadyOwnedByYou, InvalidObjectState, MetricsFilter, NoSuchBucket, NoSuchKey, NoSuchUpload, NotFound, ObjectNotInActiveTierError, } from "../models/models_0";
|
|
7
7
|
import { ObjectAlreadyInActiveTierError, } from "../models/models_1";
|
|
8
8
|
import { S3ServiceException as __BaseException } from "../models/S3ServiceException";
|
|
9
9
|
export const se_AbortMultipartUploadCommand = async (input, context) => {
|
|
@@ -1027,6 +1027,8 @@ export const se_ListBucketsCommand = async (input, context) => {
|
|
|
1027
1027
|
[_xi]: [, "ListBuckets"],
|
|
1028
1028
|
[_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()],
|
|
1029
1029
|
[_ct_]: [, input[_CTo]],
|
|
1030
|
+
[_pr]: [, input[_P]],
|
|
1031
|
+
[_br]: [, input[_BR]],
|
|
1030
1032
|
});
|
|
1031
1033
|
let body;
|
|
1032
1034
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -2996,6 +2998,9 @@ export const de_ListBucketsCommand = async (output, context) => {
|
|
|
2996
2998
|
if (data[_O] != null) {
|
|
2997
2999
|
contents[_O] = de_Owner(data[_O], context);
|
|
2998
3000
|
}
|
|
3001
|
+
if (data[_P] != null) {
|
|
3002
|
+
contents[_P] = __expectString(data[_P]);
|
|
3003
|
+
}
|
|
2999
3004
|
return contents;
|
|
3000
3005
|
};
|
|
3001
3006
|
export const de_ListDirectoryBucketsCommand = async (output, context) => {
|
|
@@ -4407,39 +4412,19 @@ const se_LifecycleRuleAndOperator = (input, context) => {
|
|
|
4407
4412
|
};
|
|
4408
4413
|
const se_LifecycleRuleFilter = (input, context) => {
|
|
4409
4414
|
const bn = new __XmlNode(_LRF);
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
bn.c(__XmlNode.of(_OSGTB, String(value)).n(_OSGT));
|
|
4424
|
-
}
|
|
4425
|
-
},
|
|
4426
|
-
ObjectSizeLessThan: (value) => {
|
|
4427
|
-
if (input[_OSLT] != null) {
|
|
4428
|
-
bn.c(__XmlNode.of(_OSLTB, String(value)).n(_OSLT));
|
|
4429
|
-
}
|
|
4430
|
-
},
|
|
4431
|
-
And: (value) => {
|
|
4432
|
-
if (input[_A] != null) {
|
|
4433
|
-
bn.c(se_LifecycleRuleAndOperator(value, context).n(_A));
|
|
4434
|
-
}
|
|
4435
|
-
},
|
|
4436
|
-
_: (name, value) => {
|
|
4437
|
-
if (!(value instanceof __XmlNode || value instanceof __XmlText)) {
|
|
4438
|
-
throw new Error("Unable to serialize unknown union members in XML.");
|
|
4439
|
-
}
|
|
4440
|
-
bn.c(new __XmlNode(name).c(value));
|
|
4441
|
-
},
|
|
4442
|
-
});
|
|
4415
|
+
bn.cc(input, _P);
|
|
4416
|
+
if (input[_Ta] != null) {
|
|
4417
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
4418
|
+
}
|
|
4419
|
+
if (input[_OSGT] != null) {
|
|
4420
|
+
bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
|
|
4421
|
+
}
|
|
4422
|
+
if (input[_OSLT] != null) {
|
|
4423
|
+
bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
|
|
4424
|
+
}
|
|
4425
|
+
if (input[_A] != null) {
|
|
4426
|
+
bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A));
|
|
4427
|
+
}
|
|
4443
4428
|
return bn;
|
|
4444
4429
|
};
|
|
4445
4430
|
const se_LifecycleRules = (input, context) => {
|
|
@@ -4788,29 +4773,13 @@ const se_ReplicationRuleAndOperator = (input, context) => {
|
|
|
4788
4773
|
};
|
|
4789
4774
|
const se_ReplicationRuleFilter = (input, context) => {
|
|
4790
4775
|
const bn = new __XmlNode(_RRF);
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
if (input[_Ta] != null) {
|
|
4799
|
-
bn.c(se_Tag(value, context).n(_Ta));
|
|
4800
|
-
}
|
|
4801
|
-
},
|
|
4802
|
-
And: (value) => {
|
|
4803
|
-
if (input[_A] != null) {
|
|
4804
|
-
bn.c(se_ReplicationRuleAndOperator(value, context).n(_A));
|
|
4805
|
-
}
|
|
4806
|
-
},
|
|
4807
|
-
_: (name, value) => {
|
|
4808
|
-
if (!(value instanceof __XmlNode || value instanceof __XmlText)) {
|
|
4809
|
-
throw new Error("Unable to serialize unknown union members in XML.");
|
|
4810
|
-
}
|
|
4811
|
-
bn.c(new __XmlNode(name).c(value));
|
|
4812
|
-
},
|
|
4813
|
-
});
|
|
4776
|
+
bn.cc(input, _P);
|
|
4777
|
+
if (input[_Ta] != null) {
|
|
4778
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
4779
|
+
}
|
|
4780
|
+
if (input[_A] != null) {
|
|
4781
|
+
bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A));
|
|
4782
|
+
}
|
|
4814
4783
|
return bn;
|
|
4815
4784
|
};
|
|
4816
4785
|
const se_ReplicationRules = (input, context) => {
|
|
@@ -5281,6 +5250,9 @@ const de_Bucket = (output, context) => {
|
|
|
5281
5250
|
if (output[_CDr] != null) {
|
|
5282
5251
|
contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDr]));
|
|
5283
5252
|
}
|
|
5253
|
+
if (output[_BR] != null) {
|
|
5254
|
+
contents[_BR] = __expectString(output[_BR]);
|
|
5255
|
+
}
|
|
5284
5256
|
return contents;
|
|
5285
5257
|
};
|
|
5286
5258
|
const de_Buckets = (output, context) => {
|
|
@@ -5875,10 +5847,8 @@ const de_LifecycleRule = (output, context) => {
|
|
|
5875
5847
|
if (output[_P] != null) {
|
|
5876
5848
|
contents[_P] = __expectString(output[_P]);
|
|
5877
5849
|
}
|
|
5878
|
-
if (output
|
|
5879
|
-
|
|
5880
|
-
else if (output[_F] != null) {
|
|
5881
|
-
contents[_F] = de_LifecycleRuleFilter(__expectUnion(output[_F]), context);
|
|
5850
|
+
if (output[_F] != null) {
|
|
5851
|
+
contents[_F] = de_LifecycleRuleFilter(output[_F], context);
|
|
5882
5852
|
}
|
|
5883
5853
|
if (output[_S] != null) {
|
|
5884
5854
|
contents[_S] = __expectString(output[_S]);
|
|
@@ -5923,32 +5893,23 @@ const de_LifecycleRuleAndOperator = (output, context) => {
|
|
|
5923
5893
|
return contents;
|
|
5924
5894
|
};
|
|
5925
5895
|
const de_LifecycleRuleFilter = (output, context) => {
|
|
5896
|
+
const contents = {};
|
|
5926
5897
|
if (output[_P] != null) {
|
|
5927
|
-
|
|
5928
|
-
Prefix: __expectString(output[_P]),
|
|
5929
|
-
};
|
|
5898
|
+
contents[_P] = __expectString(output[_P]);
|
|
5930
5899
|
}
|
|
5931
5900
|
if (output[_Ta] != null) {
|
|
5932
|
-
|
|
5933
|
-
Tag: de_Tag(output[_Ta], context),
|
|
5934
|
-
};
|
|
5901
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
5935
5902
|
}
|
|
5936
5903
|
if (output[_OSGT] != null) {
|
|
5937
|
-
|
|
5938
|
-
ObjectSizeGreaterThan: __strictParseLong(output[_OSGT]),
|
|
5939
|
-
};
|
|
5904
|
+
contents[_OSGT] = __strictParseLong(output[_OSGT]);
|
|
5940
5905
|
}
|
|
5941
5906
|
if (output[_OSLT] != null) {
|
|
5942
|
-
|
|
5943
|
-
ObjectSizeLessThan: __strictParseLong(output[_OSLT]),
|
|
5944
|
-
};
|
|
5907
|
+
contents[_OSLT] = __strictParseLong(output[_OSLT]);
|
|
5945
5908
|
}
|
|
5946
5909
|
if (output[_A] != null) {
|
|
5947
|
-
|
|
5948
|
-
And: de_LifecycleRuleAndOperator(output[_A], context),
|
|
5949
|
-
};
|
|
5910
|
+
contents[_A] = de_LifecycleRuleAndOperator(output[_A], context);
|
|
5950
5911
|
}
|
|
5951
|
-
return
|
|
5912
|
+
return contents;
|
|
5952
5913
|
};
|
|
5953
5914
|
const de_LifecycleRules = (output, context) => {
|
|
5954
5915
|
return (output || [])
|
|
@@ -6456,10 +6417,8 @@ const de_ReplicationRule = (output, context) => {
|
|
|
6456
6417
|
if (output[_P] != null) {
|
|
6457
6418
|
contents[_P] = __expectString(output[_P]);
|
|
6458
6419
|
}
|
|
6459
|
-
if (output
|
|
6460
|
-
|
|
6461
|
-
else if (output[_F] != null) {
|
|
6462
|
-
contents[_F] = de_ReplicationRuleFilter(__expectUnion(output[_F]), context);
|
|
6420
|
+
if (output[_F] != null) {
|
|
6421
|
+
contents[_F] = de_ReplicationRuleFilter(output[_F], context);
|
|
6463
6422
|
}
|
|
6464
6423
|
if (output[_S] != null) {
|
|
6465
6424
|
contents[_S] = __expectString(output[_S]);
|
|
@@ -6492,22 +6451,17 @@ const de_ReplicationRuleAndOperator = (output, context) => {
|
|
|
6492
6451
|
return contents;
|
|
6493
6452
|
};
|
|
6494
6453
|
const de_ReplicationRuleFilter = (output, context) => {
|
|
6454
|
+
const contents = {};
|
|
6495
6455
|
if (output[_P] != null) {
|
|
6496
|
-
|
|
6497
|
-
Prefix: __expectString(output[_P]),
|
|
6498
|
-
};
|
|
6456
|
+
contents[_P] = __expectString(output[_P]);
|
|
6499
6457
|
}
|
|
6500
6458
|
if (output[_Ta] != null) {
|
|
6501
|
-
|
|
6502
|
-
Tag: de_Tag(output[_Ta], context),
|
|
6503
|
-
};
|
|
6459
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
6504
6460
|
}
|
|
6505
6461
|
if (output[_A] != null) {
|
|
6506
|
-
|
|
6507
|
-
And: de_ReplicationRuleAndOperator(output[_A], context),
|
|
6508
|
-
};
|
|
6462
|
+
contents[_A] = de_ReplicationRuleAndOperator(output[_A], context);
|
|
6509
6463
|
}
|
|
6510
|
-
return
|
|
6464
|
+
return contents;
|
|
6511
6465
|
};
|
|
6512
6466
|
const de_ReplicationRules = (output, context) => {
|
|
6513
6467
|
return (output || [])
|
|
@@ -7263,6 +7217,7 @@ const _ac = "accelerate";
|
|
|
7263
7217
|
const _acl = "acl";
|
|
7264
7218
|
const _ar = "accept-ranges";
|
|
7265
7219
|
const _at = "attributes";
|
|
7220
|
+
const _br = "bucket-region";
|
|
7266
7221
|
const _c = "cors";
|
|
7267
7222
|
const _cc = "cache-control";
|
|
7268
7223
|
const _cd = "content-disposition";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha1 } from "@aws-crypto/sha1-browser";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
5
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
6
6
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
7
7
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
@@ -25,7 +25,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
27
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
|
|
28
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
29
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
30
30
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
31
31
|
md5: config?.md5 ?? Md5,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
4
4
|
import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint";
|
|
5
5
|
import { NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, } from "@aws-sdk/middleware-flexible-checksums";
|
|
6
6
|
import { NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS } from "@aws-sdk/middleware-sdk-s3";
|
|
7
|
-
import { NODE_APP_ID_CONFIG_OPTIONS,
|
|
7
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
8
8
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
9
9
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
|
|
10
10
|
import { Hash } from "@smithy/hash-node";
|
|
@@ -32,7 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
32
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
33
33
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
34
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
-
|
|
35
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
36
|
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS),
|
|
37
37
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
38
38
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
@@ -96,7 +96,7 @@ declare const CreateSessionCommand_base: {
|
|
|
96
96
|
* To encrypt new objects in a directory bucket with SSE-KMS, you must specify SSE-KMS as the directory bucket's default encryption configuration with a KMS key (specifically, a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>). Then, when a session is created for Zonal endpoint API operations, new objects are automatically encrypted and decrypted with SSE-KMS and S3 Bucket Keys during the session.</p>
|
|
97
97
|
* <note>
|
|
98
98
|
* <p>
|
|
99
|
-
* Only 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> is supported per directory bucket for the lifetime of the bucket. <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported.
|
|
99
|
+
* Only 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> is supported per directory bucket for the lifetime of the bucket. The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported.
|
|
100
100
|
* After you specify SSE-KMS as your bucket's default encryption configuration with a customer managed key, you can't change the customer managed key for the bucket's SSE-KMS configuration.
|
|
101
101
|
* </p>
|
|
102
102
|
* </note>
|