@aws-sdk/client-s3 3.668.0 → 3.670.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 +36 -120
- 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 +37 -91
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetBucketReplicationCommand.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/models/models_0.d.ts +10 -104
- package/dist-types/ts3.4/models/models_0.d.ts +10 -102
- package/package.json +11 -11
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"
|
|
@@ -5489,39 +5459,19 @@ var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
|
|
|
5489
5459
|
}, "se_LifecycleRuleAndOperator");
|
|
5490
5460
|
var se_LifecycleRuleFilter = /* @__PURE__ */ __name((input, context) => {
|
|
5491
5461
|
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
|
-
});
|
|
5462
|
+
bn.cc(input, _P);
|
|
5463
|
+
if (input[_Ta] != null) {
|
|
5464
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
5465
|
+
}
|
|
5466
|
+
if (input[_OSGT] != null) {
|
|
5467
|
+
bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
|
|
5468
|
+
}
|
|
5469
|
+
if (input[_OSLT] != null) {
|
|
5470
|
+
bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
|
|
5471
|
+
}
|
|
5472
|
+
if (input[_A] != null) {
|
|
5473
|
+
bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A));
|
|
5474
|
+
}
|
|
5525
5475
|
return bn;
|
|
5526
5476
|
}, "se_LifecycleRuleFilter");
|
|
5527
5477
|
var se_LifecycleRules = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -5865,29 +5815,13 @@ var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name((input, context) => {
|
|
|
5865
5815
|
}, "se_ReplicationRuleAndOperator");
|
|
5866
5816
|
var se_ReplicationRuleFilter = /* @__PURE__ */ __name((input, context) => {
|
|
5867
5817
|
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
|
-
});
|
|
5818
|
+
bn.cc(input, _P);
|
|
5819
|
+
if (input[_Ta] != null) {
|
|
5820
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
5821
|
+
}
|
|
5822
|
+
if (input[_A] != null) {
|
|
5823
|
+
bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A));
|
|
5824
|
+
}
|
|
5891
5825
|
return bn;
|
|
5892
5826
|
}, "se_ReplicationRuleFilter");
|
|
5893
5827
|
var se_ReplicationRules = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -6885,9 +6819,8 @@ var de_LifecycleRule = /* @__PURE__ */ __name((output, context) => {
|
|
|
6885
6819
|
if (output[_P] != null) {
|
|
6886
6820
|
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
6887
6821
|
}
|
|
6888
|
-
if (output
|
|
6889
|
-
|
|
6890
|
-
contents[_F] = de_LifecycleRuleFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
|
|
6822
|
+
if (output[_F] != null) {
|
|
6823
|
+
contents[_F] = de_LifecycleRuleFilter(output[_F], context);
|
|
6891
6824
|
}
|
|
6892
6825
|
if (output[_S] != null) {
|
|
6893
6826
|
contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
|
|
@@ -6929,32 +6862,23 @@ var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => {
|
|
|
6929
6862
|
return contents;
|
|
6930
6863
|
}, "de_LifecycleRuleAndOperator");
|
|
6931
6864
|
var de_LifecycleRuleFilter = /* @__PURE__ */ __name((output, context) => {
|
|
6865
|
+
const contents = {};
|
|
6932
6866
|
if (output[_P] != null) {
|
|
6933
|
-
|
|
6934
|
-
Prefix: (0, import_smithy_client.expectString)(output[_P])
|
|
6935
|
-
};
|
|
6867
|
+
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
6936
6868
|
}
|
|
6937
6869
|
if (output[_Ta] != null) {
|
|
6938
|
-
|
|
6939
|
-
Tag: de_Tag(output[_Ta], context)
|
|
6940
|
-
};
|
|
6870
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
6941
6871
|
}
|
|
6942
6872
|
if (output[_OSGT] != null) {
|
|
6943
|
-
|
|
6944
|
-
ObjectSizeGreaterThan: (0, import_smithy_client.strictParseLong)(output[_OSGT])
|
|
6945
|
-
};
|
|
6873
|
+
contents[_OSGT] = (0, import_smithy_client.strictParseLong)(output[_OSGT]);
|
|
6946
6874
|
}
|
|
6947
6875
|
if (output[_OSLT] != null) {
|
|
6948
|
-
|
|
6949
|
-
ObjectSizeLessThan: (0, import_smithy_client.strictParseLong)(output[_OSLT])
|
|
6950
|
-
};
|
|
6876
|
+
contents[_OSLT] = (0, import_smithy_client.strictParseLong)(output[_OSLT]);
|
|
6951
6877
|
}
|
|
6952
6878
|
if (output[_A] != null) {
|
|
6953
|
-
|
|
6954
|
-
And: de_LifecycleRuleAndOperator(output[_A], context)
|
|
6955
|
-
};
|
|
6879
|
+
contents[_A] = de_LifecycleRuleAndOperator(output[_A], context);
|
|
6956
6880
|
}
|
|
6957
|
-
return
|
|
6881
|
+
return contents;
|
|
6958
6882
|
}, "de_LifecycleRuleFilter");
|
|
6959
6883
|
var de_LifecycleRules = /* @__PURE__ */ __name((output, context) => {
|
|
6960
6884
|
return (output || []).filter((e) => e != null).map((entry) => {
|
|
@@ -7434,9 +7358,8 @@ var de_ReplicationRule = /* @__PURE__ */ __name((output, context) => {
|
|
|
7434
7358
|
if (output[_P] != null) {
|
|
7435
7359
|
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
7436
7360
|
}
|
|
7437
|
-
if (output
|
|
7438
|
-
|
|
7439
|
-
contents[_F] = de_ReplicationRuleFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
|
|
7361
|
+
if (output[_F] != null) {
|
|
7362
|
+
contents[_F] = de_ReplicationRuleFilter(output[_F], context);
|
|
7440
7363
|
}
|
|
7441
7364
|
if (output[_S] != null) {
|
|
7442
7365
|
contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
|
|
@@ -7468,22 +7391,17 @@ var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) =>
|
|
|
7468
7391
|
return contents;
|
|
7469
7392
|
}, "de_ReplicationRuleAndOperator");
|
|
7470
7393
|
var de_ReplicationRuleFilter = /* @__PURE__ */ __name((output, context) => {
|
|
7394
|
+
const contents = {};
|
|
7471
7395
|
if (output[_P] != null) {
|
|
7472
|
-
|
|
7473
|
-
Prefix: (0, import_smithy_client.expectString)(output[_P])
|
|
7474
|
-
};
|
|
7396
|
+
contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
|
|
7475
7397
|
}
|
|
7476
7398
|
if (output[_Ta] != null) {
|
|
7477
|
-
|
|
7478
|
-
Tag: de_Tag(output[_Ta], context)
|
|
7479
|
-
};
|
|
7399
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
7480
7400
|
}
|
|
7481
7401
|
if (output[_A] != null) {
|
|
7482
|
-
|
|
7483
|
-
And: de_ReplicationRuleAndOperator(output[_A], context)
|
|
7484
|
-
};
|
|
7402
|
+
contents[_A] = de_ReplicationRuleAndOperator(output[_A], context);
|
|
7485
7403
|
}
|
|
7486
|
-
return
|
|
7404
|
+
return contents;
|
|
7487
7405
|
}, "de_ReplicationRuleFilter");
|
|
7488
7406
|
var de_ReplicationRules = /* @__PURE__ */ __name((output, context) => {
|
|
7489
7407
|
return (output || []).filter((e) => e != null).map((entry) => {
|
|
@@ -10883,7 +10801,6 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
10883
10801
|
InventoryIncludedObjectVersions,
|
|
10884
10802
|
InventoryOptionalField,
|
|
10885
10803
|
InventoryFrequency,
|
|
10886
|
-
LifecycleRuleFilter,
|
|
10887
10804
|
TransitionStorageClass,
|
|
10888
10805
|
ExpirationStatus,
|
|
10889
10806
|
TransitionDefaultMinimumObjectSize,
|
|
@@ -10896,7 +10813,6 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
10896
10813
|
MetricsStatus,
|
|
10897
10814
|
ReplicationTimeStatus,
|
|
10898
10815
|
ExistingObjectReplicationStatus,
|
|
10899
|
-
ReplicationRuleFilter,
|
|
10900
10816
|
ReplicaModificationsStatus,
|
|
10901
10817
|
SseKmsEncryptedObjectsStatus,
|
|
10902
10818
|
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) => {
|
|
@@ -4407,39 +4407,19 @@ const se_LifecycleRuleAndOperator = (input, context) => {
|
|
|
4407
4407
|
};
|
|
4408
4408
|
const se_LifecycleRuleFilter = (input, context) => {
|
|
4409
4409
|
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
|
-
});
|
|
4410
|
+
bn.cc(input, _P);
|
|
4411
|
+
if (input[_Ta] != null) {
|
|
4412
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
4413
|
+
}
|
|
4414
|
+
if (input[_OSGT] != null) {
|
|
4415
|
+
bn.c(__XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT));
|
|
4416
|
+
}
|
|
4417
|
+
if (input[_OSLT] != null) {
|
|
4418
|
+
bn.c(__XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT));
|
|
4419
|
+
}
|
|
4420
|
+
if (input[_A] != null) {
|
|
4421
|
+
bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A));
|
|
4422
|
+
}
|
|
4443
4423
|
return bn;
|
|
4444
4424
|
};
|
|
4445
4425
|
const se_LifecycleRules = (input, context) => {
|
|
@@ -4788,29 +4768,13 @@ const se_ReplicationRuleAndOperator = (input, context) => {
|
|
|
4788
4768
|
};
|
|
4789
4769
|
const se_ReplicationRuleFilter = (input, context) => {
|
|
4790
4770
|
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
|
-
});
|
|
4771
|
+
bn.cc(input, _P);
|
|
4772
|
+
if (input[_Ta] != null) {
|
|
4773
|
+
bn.c(se_Tag(input[_Ta], context).n(_Ta));
|
|
4774
|
+
}
|
|
4775
|
+
if (input[_A] != null) {
|
|
4776
|
+
bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A));
|
|
4777
|
+
}
|
|
4814
4778
|
return bn;
|
|
4815
4779
|
};
|
|
4816
4780
|
const se_ReplicationRules = (input, context) => {
|
|
@@ -5875,10 +5839,8 @@ const de_LifecycleRule = (output, context) => {
|
|
|
5875
5839
|
if (output[_P] != null) {
|
|
5876
5840
|
contents[_P] = __expectString(output[_P]);
|
|
5877
5841
|
}
|
|
5878
|
-
if (output
|
|
5879
|
-
|
|
5880
|
-
else if (output[_F] != null) {
|
|
5881
|
-
contents[_F] = de_LifecycleRuleFilter(__expectUnion(output[_F]), context);
|
|
5842
|
+
if (output[_F] != null) {
|
|
5843
|
+
contents[_F] = de_LifecycleRuleFilter(output[_F], context);
|
|
5882
5844
|
}
|
|
5883
5845
|
if (output[_S] != null) {
|
|
5884
5846
|
contents[_S] = __expectString(output[_S]);
|
|
@@ -5923,32 +5885,23 @@ const de_LifecycleRuleAndOperator = (output, context) => {
|
|
|
5923
5885
|
return contents;
|
|
5924
5886
|
};
|
|
5925
5887
|
const de_LifecycleRuleFilter = (output, context) => {
|
|
5888
|
+
const contents = {};
|
|
5926
5889
|
if (output[_P] != null) {
|
|
5927
|
-
|
|
5928
|
-
Prefix: __expectString(output[_P]),
|
|
5929
|
-
};
|
|
5890
|
+
contents[_P] = __expectString(output[_P]);
|
|
5930
5891
|
}
|
|
5931
5892
|
if (output[_Ta] != null) {
|
|
5932
|
-
|
|
5933
|
-
Tag: de_Tag(output[_Ta], context),
|
|
5934
|
-
};
|
|
5893
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
5935
5894
|
}
|
|
5936
5895
|
if (output[_OSGT] != null) {
|
|
5937
|
-
|
|
5938
|
-
ObjectSizeGreaterThan: __strictParseLong(output[_OSGT]),
|
|
5939
|
-
};
|
|
5896
|
+
contents[_OSGT] = __strictParseLong(output[_OSGT]);
|
|
5940
5897
|
}
|
|
5941
5898
|
if (output[_OSLT] != null) {
|
|
5942
|
-
|
|
5943
|
-
ObjectSizeLessThan: __strictParseLong(output[_OSLT]),
|
|
5944
|
-
};
|
|
5899
|
+
contents[_OSLT] = __strictParseLong(output[_OSLT]);
|
|
5945
5900
|
}
|
|
5946
5901
|
if (output[_A] != null) {
|
|
5947
|
-
|
|
5948
|
-
And: de_LifecycleRuleAndOperator(output[_A], context),
|
|
5949
|
-
};
|
|
5902
|
+
contents[_A] = de_LifecycleRuleAndOperator(output[_A], context);
|
|
5950
5903
|
}
|
|
5951
|
-
return
|
|
5904
|
+
return contents;
|
|
5952
5905
|
};
|
|
5953
5906
|
const de_LifecycleRules = (output, context) => {
|
|
5954
5907
|
return (output || [])
|
|
@@ -6456,10 +6409,8 @@ const de_ReplicationRule = (output, context) => {
|
|
|
6456
6409
|
if (output[_P] != null) {
|
|
6457
6410
|
contents[_P] = __expectString(output[_P]);
|
|
6458
6411
|
}
|
|
6459
|
-
if (output
|
|
6460
|
-
|
|
6461
|
-
else if (output[_F] != null) {
|
|
6462
|
-
contents[_F] = de_ReplicationRuleFilter(__expectUnion(output[_F]), context);
|
|
6412
|
+
if (output[_F] != null) {
|
|
6413
|
+
contents[_F] = de_ReplicationRuleFilter(output[_F], context);
|
|
6463
6414
|
}
|
|
6464
6415
|
if (output[_S] != null) {
|
|
6465
6416
|
contents[_S] = __expectString(output[_S]);
|
|
@@ -6492,22 +6443,17 @@ const de_ReplicationRuleAndOperator = (output, context) => {
|
|
|
6492
6443
|
return contents;
|
|
6493
6444
|
};
|
|
6494
6445
|
const de_ReplicationRuleFilter = (output, context) => {
|
|
6446
|
+
const contents = {};
|
|
6495
6447
|
if (output[_P] != null) {
|
|
6496
|
-
|
|
6497
|
-
Prefix: __expectString(output[_P]),
|
|
6498
|
-
};
|
|
6448
|
+
contents[_P] = __expectString(output[_P]);
|
|
6499
6449
|
}
|
|
6500
6450
|
if (output[_Ta] != null) {
|
|
6501
|
-
|
|
6502
|
-
Tag: de_Tag(output[_Ta], context),
|
|
6503
|
-
};
|
|
6451
|
+
contents[_Ta] = de_Tag(output[_Ta], context);
|
|
6504
6452
|
}
|
|
6505
6453
|
if (output[_A] != null) {
|
|
6506
|
-
|
|
6507
|
-
And: de_ReplicationRuleAndOperator(output[_A], context),
|
|
6508
|
-
};
|
|
6454
|
+
contents[_A] = de_ReplicationRuleAndOperator(output[_A], context);
|
|
6509
6455
|
}
|
|
6510
|
-
return
|
|
6456
|
+
return contents;
|
|
6511
6457
|
};
|
|
6512
6458
|
const de_ReplicationRules = (output, context) => {
|
|
6513
6459
|
return (output || [])
|
|
@@ -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),
|
|
@@ -106,7 +106,7 @@ declare const GetBucketLifecycleConfigurationCommand_base: {
|
|
|
106
106
|
* // },
|
|
107
107
|
* // ID: "STRING_VALUE",
|
|
108
108
|
* // Prefix: "STRING_VALUE",
|
|
109
|
-
* // Filter: { // LifecycleRuleFilter
|
|
109
|
+
* // Filter: { // LifecycleRuleFilter
|
|
110
110
|
* // Prefix: "STRING_VALUE",
|
|
111
111
|
* // Tag: { // Tag
|
|
112
112
|
* // Key: "STRING_VALUE", // required
|
|
@@ -80,7 +80,7 @@ declare const GetBucketReplicationCommand_base: {
|
|
|
80
80
|
* // ID: "STRING_VALUE",
|
|
81
81
|
* // Priority: Number("int"),
|
|
82
82
|
* // Prefix: "STRING_VALUE",
|
|
83
|
-
* // Filter: { // ReplicationRuleFilter
|
|
83
|
+
* // Filter: { // ReplicationRuleFilter
|
|
84
84
|
* // Prefix: "STRING_VALUE",
|
|
85
85
|
* // Tag: { // Tag
|
|
86
86
|
* // Key: "STRING_VALUE", // required
|
|
@@ -136,7 +136,7 @@ declare const PutBucketLifecycleConfigurationCommand_base: {
|
|
|
136
136
|
* },
|
|
137
137
|
* ID: "STRING_VALUE",
|
|
138
138
|
* Prefix: "STRING_VALUE",
|
|
139
|
-
* Filter: { // LifecycleRuleFilter
|
|
139
|
+
* Filter: { // LifecycleRuleFilter
|
|
140
140
|
* Prefix: "STRING_VALUE",
|
|
141
141
|
* Tag: { // Tag
|
|
142
142
|
* Key: "STRING_VALUE", // required
|
|
@@ -118,7 +118,7 @@ declare const PutBucketReplicationCommand_base: {
|
|
|
118
118
|
* ID: "STRING_VALUE",
|
|
119
119
|
* Priority: Number("int"),
|
|
120
120
|
* Prefix: "STRING_VALUE",
|
|
121
|
-
* Filter: { // ReplicationRuleFilter
|
|
121
|
+
* Filter: { // ReplicationRuleFilter
|
|
122
122
|
* Prefix: "STRING_VALUE",
|
|
123
123
|
* Tag: { // Tag
|
|
124
124
|
* Key: "STRING_VALUE", // required
|
|
@@ -6407,11 +6407,7 @@ export interface LifecycleRuleAndOperator {
|
|
|
6407
6407
|
* <code>And</code> specified. If the <code>Filter</code> element is left empty, the Lifecycle Rule applies to all objects in the bucket.</p>
|
|
6408
6408
|
* @public
|
|
6409
6409
|
*/
|
|
6410
|
-
export
|
|
6411
|
-
/**
|
|
6412
|
-
* @public
|
|
6413
|
-
*/
|
|
6414
|
-
export declare namespace LifecycleRuleFilter {
|
|
6410
|
+
export interface LifecycleRuleFilter {
|
|
6415
6411
|
/**
|
|
6416
6412
|
* <p>Prefix identifying one or more objects to which the rule applies.</p>
|
|
6417
6413
|
* <important>
|
|
@@ -6421,84 +6417,29 @@ export declare namespace LifecycleRuleFilter {
|
|
|
6421
6417
|
* </important>
|
|
6422
6418
|
* @public
|
|
6423
6419
|
*/
|
|
6424
|
-
|
|
6425
|
-
Prefix: string;
|
|
6426
|
-
Tag?: never;
|
|
6427
|
-
ObjectSizeGreaterThan?: never;
|
|
6428
|
-
ObjectSizeLessThan?: never;
|
|
6429
|
-
And?: never;
|
|
6430
|
-
$unknown?: never;
|
|
6431
|
-
}
|
|
6420
|
+
Prefix?: string;
|
|
6432
6421
|
/**
|
|
6433
6422
|
* <p>This tag must exist in the object's tag set in order for the rule to apply.</p>
|
|
6434
6423
|
* @public
|
|
6435
6424
|
*/
|
|
6436
|
-
|
|
6437
|
-
Prefix?: never;
|
|
6438
|
-
Tag: Tag;
|
|
6439
|
-
ObjectSizeGreaterThan?: never;
|
|
6440
|
-
ObjectSizeLessThan?: never;
|
|
6441
|
-
And?: never;
|
|
6442
|
-
$unknown?: never;
|
|
6443
|
-
}
|
|
6425
|
+
Tag?: Tag;
|
|
6444
6426
|
/**
|
|
6445
6427
|
* <p>Minimum object size to which the rule applies.</p>
|
|
6446
6428
|
* @public
|
|
6447
6429
|
*/
|
|
6448
|
-
|
|
6449
|
-
Prefix?: never;
|
|
6450
|
-
Tag?: never;
|
|
6451
|
-
ObjectSizeGreaterThan: number;
|
|
6452
|
-
ObjectSizeLessThan?: never;
|
|
6453
|
-
And?: never;
|
|
6454
|
-
$unknown?: never;
|
|
6455
|
-
}
|
|
6430
|
+
ObjectSizeGreaterThan?: number;
|
|
6456
6431
|
/**
|
|
6457
6432
|
* <p>Maximum object size to which the rule applies.</p>
|
|
6458
6433
|
* @public
|
|
6459
6434
|
*/
|
|
6460
|
-
|
|
6461
|
-
Prefix?: never;
|
|
6462
|
-
Tag?: never;
|
|
6463
|
-
ObjectSizeGreaterThan?: never;
|
|
6464
|
-
ObjectSizeLessThan: number;
|
|
6465
|
-
And?: never;
|
|
6466
|
-
$unknown?: never;
|
|
6467
|
-
}
|
|
6435
|
+
ObjectSizeLessThan?: number;
|
|
6468
6436
|
/**
|
|
6469
6437
|
* <p>This is used in a Lifecycle Rule Filter to apply a logical AND to two or more
|
|
6470
6438
|
* predicates. The Lifecycle Rule will apply to any object matching all of the predicates
|
|
6471
6439
|
* configured inside the And operator.</p>
|
|
6472
6440
|
* @public
|
|
6473
6441
|
*/
|
|
6474
|
-
|
|
6475
|
-
Prefix?: never;
|
|
6476
|
-
Tag?: never;
|
|
6477
|
-
ObjectSizeGreaterThan?: never;
|
|
6478
|
-
ObjectSizeLessThan?: never;
|
|
6479
|
-
And: LifecycleRuleAndOperator;
|
|
6480
|
-
$unknown?: never;
|
|
6481
|
-
}
|
|
6482
|
-
/**
|
|
6483
|
-
* @public
|
|
6484
|
-
*/
|
|
6485
|
-
interface $UnknownMember {
|
|
6486
|
-
Prefix?: never;
|
|
6487
|
-
Tag?: never;
|
|
6488
|
-
ObjectSizeGreaterThan?: never;
|
|
6489
|
-
ObjectSizeLessThan?: never;
|
|
6490
|
-
And?: never;
|
|
6491
|
-
$unknown: [string, any];
|
|
6492
|
-
}
|
|
6493
|
-
interface Visitor<T> {
|
|
6494
|
-
Prefix: (value: string) => T;
|
|
6495
|
-
Tag: (value: Tag) => T;
|
|
6496
|
-
ObjectSizeGreaterThan: (value: number) => T;
|
|
6497
|
-
ObjectSizeLessThan: (value: number) => T;
|
|
6498
|
-
And: (value: LifecycleRuleAndOperator) => T;
|
|
6499
|
-
_: (name: string, value: any) => T;
|
|
6500
|
-
}
|
|
6501
|
-
const visit: <T>(value: LifecycleRuleFilter, visitor: Visitor<T>) => T;
|
|
6442
|
+
And?: LifecycleRuleAndOperator;
|
|
6502
6443
|
}
|
|
6503
6444
|
/**
|
|
6504
6445
|
* <p>Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently
|
|
@@ -7757,11 +7698,7 @@ export interface ReplicationRuleAndOperator {
|
|
|
7757
7698
|
* an <code>And</code> child element.</p>
|
|
7758
7699
|
* @public
|
|
7759
7700
|
*/
|
|
7760
|
-
export
|
|
7761
|
-
/**
|
|
7762
|
-
* @public
|
|
7763
|
-
*/
|
|
7764
|
-
export declare namespace ReplicationRuleFilter {
|
|
7701
|
+
export interface ReplicationRuleFilter {
|
|
7765
7702
|
/**
|
|
7766
7703
|
* <p>An object key name prefix that identifies the subset of objects to which the rule
|
|
7767
7704
|
* applies.</p>
|
|
@@ -7772,23 +7709,13 @@ export declare namespace ReplicationRuleFilter {
|
|
|
7772
7709
|
* </important>
|
|
7773
7710
|
* @public
|
|
7774
7711
|
*/
|
|
7775
|
-
|
|
7776
|
-
Prefix: string;
|
|
7777
|
-
Tag?: never;
|
|
7778
|
-
And?: never;
|
|
7779
|
-
$unknown?: never;
|
|
7780
|
-
}
|
|
7712
|
+
Prefix?: string;
|
|
7781
7713
|
/**
|
|
7782
7714
|
* <p>A container for specifying a tag key and value. </p>
|
|
7783
7715
|
* <p>The rule applies only to objects that have the tag in their tag set.</p>
|
|
7784
7716
|
* @public
|
|
7785
7717
|
*/
|
|
7786
|
-
|
|
7787
|
-
Prefix?: never;
|
|
7788
|
-
Tag: Tag;
|
|
7789
|
-
And?: never;
|
|
7790
|
-
$unknown?: never;
|
|
7791
|
-
}
|
|
7718
|
+
Tag?: Tag;
|
|
7792
7719
|
/**
|
|
7793
7720
|
* <p>A container for specifying rule filters. The filters determine the subset of objects to
|
|
7794
7721
|
* which the rule applies. This element is required only if you specify more than one filter.
|
|
@@ -7805,28 +7732,7 @@ export declare namespace ReplicationRuleFilter {
|
|
|
7805
7732
|
* </ul>
|
|
7806
7733
|
* @public
|
|
7807
7734
|
*/
|
|
7808
|
-
|
|
7809
|
-
Prefix?: never;
|
|
7810
|
-
Tag?: never;
|
|
7811
|
-
And: ReplicationRuleAndOperator;
|
|
7812
|
-
$unknown?: never;
|
|
7813
|
-
}
|
|
7814
|
-
/**
|
|
7815
|
-
* @public
|
|
7816
|
-
*/
|
|
7817
|
-
interface $UnknownMember {
|
|
7818
|
-
Prefix?: never;
|
|
7819
|
-
Tag?: never;
|
|
7820
|
-
And?: never;
|
|
7821
|
-
$unknown: [string, any];
|
|
7822
|
-
}
|
|
7823
|
-
interface Visitor<T> {
|
|
7824
|
-
Prefix: (value: string) => T;
|
|
7825
|
-
Tag: (value: Tag) => T;
|
|
7826
|
-
And: (value: ReplicationRuleAndOperator) => T;
|
|
7827
|
-
_: (name: string, value: any) => T;
|
|
7828
|
-
}
|
|
7829
|
-
const visit: <T>(value: ReplicationRuleFilter, visitor: Visitor<T>) => T;
|
|
7735
|
+
And?: ReplicationRuleAndOperator;
|
|
7830
7736
|
}
|
|
7831
7737
|
/**
|
|
7832
7738
|
* @public
|
|
@@ -814,71 +814,12 @@ export interface LifecycleRuleAndOperator {
|
|
|
814
814
|
ObjectSizeGreaterThan?: number;
|
|
815
815
|
ObjectSizeLessThan?: number;
|
|
816
816
|
}
|
|
817
|
-
export
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
| LifecycleRuleFilter.$UnknownMember;
|
|
824
|
-
export declare namespace LifecycleRuleFilter {
|
|
825
|
-
interface PrefixMember {
|
|
826
|
-
Prefix: string;
|
|
827
|
-
Tag?: never;
|
|
828
|
-
ObjectSizeGreaterThan?: never;
|
|
829
|
-
ObjectSizeLessThan?: never;
|
|
830
|
-
And?: never;
|
|
831
|
-
$unknown?: never;
|
|
832
|
-
}
|
|
833
|
-
interface TagMember {
|
|
834
|
-
Prefix?: never;
|
|
835
|
-
Tag: Tag;
|
|
836
|
-
ObjectSizeGreaterThan?: never;
|
|
837
|
-
ObjectSizeLessThan?: never;
|
|
838
|
-
And?: never;
|
|
839
|
-
$unknown?: never;
|
|
840
|
-
}
|
|
841
|
-
interface ObjectSizeGreaterThanMember {
|
|
842
|
-
Prefix?: never;
|
|
843
|
-
Tag?: never;
|
|
844
|
-
ObjectSizeGreaterThan: number;
|
|
845
|
-
ObjectSizeLessThan?: never;
|
|
846
|
-
And?: never;
|
|
847
|
-
$unknown?: never;
|
|
848
|
-
}
|
|
849
|
-
interface ObjectSizeLessThanMember {
|
|
850
|
-
Prefix?: never;
|
|
851
|
-
Tag?: never;
|
|
852
|
-
ObjectSizeGreaterThan?: never;
|
|
853
|
-
ObjectSizeLessThan: number;
|
|
854
|
-
And?: never;
|
|
855
|
-
$unknown?: never;
|
|
856
|
-
}
|
|
857
|
-
interface AndMember {
|
|
858
|
-
Prefix?: never;
|
|
859
|
-
Tag?: never;
|
|
860
|
-
ObjectSizeGreaterThan?: never;
|
|
861
|
-
ObjectSizeLessThan?: never;
|
|
862
|
-
And: LifecycleRuleAndOperator;
|
|
863
|
-
$unknown?: never;
|
|
864
|
-
}
|
|
865
|
-
interface $UnknownMember {
|
|
866
|
-
Prefix?: never;
|
|
867
|
-
Tag?: never;
|
|
868
|
-
ObjectSizeGreaterThan?: never;
|
|
869
|
-
ObjectSizeLessThan?: never;
|
|
870
|
-
And?: never;
|
|
871
|
-
$unknown: [string, any];
|
|
872
|
-
}
|
|
873
|
-
interface Visitor<T> {
|
|
874
|
-
Prefix: (value: string) => T;
|
|
875
|
-
Tag: (value: Tag) => T;
|
|
876
|
-
ObjectSizeGreaterThan: (value: number) => T;
|
|
877
|
-
ObjectSizeLessThan: (value: number) => T;
|
|
878
|
-
And: (value: LifecycleRuleAndOperator) => T;
|
|
879
|
-
_: (name: string, value: any) => T;
|
|
880
|
-
}
|
|
881
|
-
const visit: <T>(value: LifecycleRuleFilter, visitor: Visitor<T>) => T;
|
|
817
|
+
export interface LifecycleRuleFilter {
|
|
818
|
+
Prefix?: string;
|
|
819
|
+
Tag?: Tag;
|
|
820
|
+
ObjectSizeGreaterThan?: number;
|
|
821
|
+
ObjectSizeLessThan?: number;
|
|
822
|
+
And?: LifecycleRuleAndOperator;
|
|
882
823
|
}
|
|
883
824
|
export interface NoncurrentVersionExpiration {
|
|
884
825
|
NoncurrentDays?: number;
|
|
@@ -1209,43 +1150,10 @@ export interface ReplicationRuleAndOperator {
|
|
|
1209
1150
|
Prefix?: string;
|
|
1210
1151
|
Tags?: Tag[];
|
|
1211
1152
|
}
|
|
1212
|
-
export
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
| ReplicationRuleFilter.$UnknownMember;
|
|
1217
|
-
export declare namespace ReplicationRuleFilter {
|
|
1218
|
-
interface PrefixMember {
|
|
1219
|
-
Prefix: string;
|
|
1220
|
-
Tag?: never;
|
|
1221
|
-
And?: never;
|
|
1222
|
-
$unknown?: never;
|
|
1223
|
-
}
|
|
1224
|
-
interface TagMember {
|
|
1225
|
-
Prefix?: never;
|
|
1226
|
-
Tag: Tag;
|
|
1227
|
-
And?: never;
|
|
1228
|
-
$unknown?: never;
|
|
1229
|
-
}
|
|
1230
|
-
interface AndMember {
|
|
1231
|
-
Prefix?: never;
|
|
1232
|
-
Tag?: never;
|
|
1233
|
-
And: ReplicationRuleAndOperator;
|
|
1234
|
-
$unknown?: never;
|
|
1235
|
-
}
|
|
1236
|
-
interface $UnknownMember {
|
|
1237
|
-
Prefix?: never;
|
|
1238
|
-
Tag?: never;
|
|
1239
|
-
And?: never;
|
|
1240
|
-
$unknown: [string, any];
|
|
1241
|
-
}
|
|
1242
|
-
interface Visitor<T> {
|
|
1243
|
-
Prefix: (value: string) => T;
|
|
1244
|
-
Tag: (value: Tag) => T;
|
|
1245
|
-
And: (value: ReplicationRuleAndOperator) => T;
|
|
1246
|
-
_: (name: string, value: any) => T;
|
|
1247
|
-
}
|
|
1248
|
-
const visit: <T>(value: ReplicationRuleFilter, visitor: Visitor<T>) => T;
|
|
1153
|
+
export interface ReplicationRuleFilter {
|
|
1154
|
+
Prefix?: string;
|
|
1155
|
+
Tag?: Tag;
|
|
1156
|
+
And?: ReplicationRuleAndOperator;
|
|
1249
1157
|
}
|
|
1250
1158
|
export declare const ReplicaModificationsStatus: {
|
|
1251
1159
|
readonly Disabled: "Disabled";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.670.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -26,26 +26,26 @@
|
|
|
26
26
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
27
27
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
29
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
29
|
+
"@aws-sdk/client-sso-oidc": "3.670.0",
|
|
30
|
+
"@aws-sdk/client-sts": "3.670.0",
|
|
31
31
|
"@aws-sdk/core": "3.667.0",
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.670.0",
|
|
33
33
|
"@aws-sdk/middleware-bucket-endpoint": "3.667.0",
|
|
34
34
|
"@aws-sdk/middleware-expect-continue": "3.667.0",
|
|
35
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
35
|
+
"@aws-sdk/middleware-flexible-checksums": "3.669.0",
|
|
36
36
|
"@aws-sdk/middleware-host-header": "3.667.0",
|
|
37
37
|
"@aws-sdk/middleware-location-constraint": "3.667.0",
|
|
38
38
|
"@aws-sdk/middleware-logger": "3.667.0",
|
|
39
39
|
"@aws-sdk/middleware-recursion-detection": "3.667.0",
|
|
40
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
40
|
+
"@aws-sdk/middleware-sdk-s3": "3.669.0",
|
|
41
41
|
"@aws-sdk/middleware-ssec": "3.667.0",
|
|
42
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
+
"@aws-sdk/middleware-user-agent": "3.669.0",
|
|
43
43
|
"@aws-sdk/region-config-resolver": "3.667.0",
|
|
44
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
44
|
+
"@aws-sdk/signature-v4-multi-region": "3.669.0",
|
|
45
45
|
"@aws-sdk/types": "3.667.0",
|
|
46
46
|
"@aws-sdk/util-endpoints": "3.667.0",
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.670.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.669.0",
|
|
49
49
|
"@aws-sdk/xml-builder": "3.662.0",
|
|
50
50
|
"@smithy/config-resolver": "^3.0.9",
|
|
51
51
|
"@smithy/core": "^2.4.8",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"tslib": "^2.6.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
86
|
+
"@aws-sdk/signature-v4-crt": "3.669.0",
|
|
87
87
|
"@tsconfig/node16": "16.1.3",
|
|
88
88
|
"@types/chai": "^4.2.11",
|
|
89
89
|
"@types/mocha": "^8.0.4",
|