@aws-sdk/client-s3 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restXml.js +2 -2
- package/dist-es/S3.js +381 -374
- package/dist-es/S3Client.js +32 -26
- package/dist-es/commands/AbortMultipartUploadCommand.js +28 -21
- package/dist-es/commands/CompleteMultipartUploadCommand.js +28 -21
- package/dist-es/commands/CopyObjectCommand.js +28 -21
- package/dist-es/commands/CreateBucketCommand.js +28 -21
- package/dist-es/commands/CreateMultipartUploadCommand.js +28 -21
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketCommand.js +29 -22
- package/dist-es/commands/DeleteBucketCorsCommand.js +29 -22
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +29 -22
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +29 -22
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +29 -22
- package/dist-es/commands/DeleteBucketPolicyCommand.js +29 -22
- package/dist-es/commands/DeleteBucketReplicationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketTaggingCommand.js +29 -22
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +29 -22
- package/dist-es/commands/DeleteObjectCommand.js +28 -21
- package/dist-es/commands/DeleteObjectTaggingCommand.js +28 -21
- package/dist-es/commands/DeleteObjectsCommand.js +28 -21
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +29 -22
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketAclCommand.js +28 -21
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketCorsCommand.js +28 -21
- package/dist-es/commands/GetBucketEncryptionCommand.js +28 -21
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketLocationCommand.js +28 -21
- package/dist-es/commands/GetBucketLoggingCommand.js +28 -21
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +28 -21
- package/dist-es/commands/GetBucketPolicyCommand.js +28 -21
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +28 -21
- package/dist-es/commands/GetBucketReplicationCommand.js +28 -21
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +28 -21
- package/dist-es/commands/GetBucketTaggingCommand.js +28 -21
- package/dist-es/commands/GetBucketVersioningCommand.js +28 -21
- package/dist-es/commands/GetBucketWebsiteCommand.js +28 -21
- package/dist-es/commands/GetObjectAclCommand.js +28 -21
- package/dist-es/commands/GetObjectAttributesCommand.js +28 -21
- package/dist-es/commands/GetObjectCommand.js +28 -21
- package/dist-es/commands/GetObjectLegalHoldCommand.js +28 -21
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +28 -21
- package/dist-es/commands/GetObjectRetentionCommand.js +28 -21
- package/dist-es/commands/GetObjectTaggingCommand.js +28 -21
- package/dist-es/commands/GetObjectTorrentCommand.js +28 -21
- package/dist-es/commands/GetPublicAccessBlockCommand.js +28 -21
- package/dist-es/commands/HeadBucketCommand.js +29 -22
- package/dist-es/commands/HeadObjectCommand.js +28 -21
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketsCommand.js +29 -22
- package/dist-es/commands/ListMultipartUploadsCommand.js +28 -21
- package/dist-es/commands/ListObjectVersionsCommand.js +28 -21
- package/dist-es/commands/ListObjectsCommand.js +28 -21
- package/dist-es/commands/ListObjectsV2Command.js +28 -21
- package/dist-es/commands/ListPartsCommand.js +28 -21
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketAclCommand.js +29 -22
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketCorsCommand.js +29 -22
- package/dist-es/commands/PutBucketEncryptionCommand.js +29 -22
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketLoggingCommand.js +29 -22
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +29 -22
- package/dist-es/commands/PutBucketPolicyCommand.js +29 -22
- package/dist-es/commands/PutBucketReplicationCommand.js +29 -22
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +29 -22
- package/dist-es/commands/PutBucketTaggingCommand.js +29 -22
- package/dist-es/commands/PutBucketVersioningCommand.js +29 -22
- package/dist-es/commands/PutBucketWebsiteCommand.js +29 -22
- package/dist-es/commands/PutObjectAclCommand.js +28 -21
- package/dist-es/commands/PutObjectCommand.js +28 -21
- package/dist-es/commands/PutObjectLegalHoldCommand.js +28 -21
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +28 -21
- package/dist-es/commands/PutObjectRetentionCommand.js +28 -21
- package/dist-es/commands/PutObjectTaggingCommand.js +28 -21
- package/dist-es/commands/PutPublicAccessBlockCommand.js +29 -22
- package/dist-es/commands/RestoreObjectCommand.js +28 -21
- package/dist-es/commands/SelectObjectContentCommand.js +28 -21
- package/dist-es/commands/UploadPartCommand.js +28 -21
- package/dist-es/commands/UploadPartCopyCommand.js +28 -21
- package/dist-es/commands/WriteGetObjectResponseCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/S3ServiceException.js +10 -5
- package/dist-es/models/models_0.js +378 -896
- package/dist-es/models/models_1.js +54 -141
- package/dist-es/pagination/ListObjectsV2Paginator.js +68 -25
- package/dist-es/pagination/ListPartsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restXml.js +9022 -6891
- package/dist-es/runtimeConfig.browser.js +12 -31
- package/dist-es/runtimeConfig.js +12 -36
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +14 -11
- package/dist-es/waiters/waitForBucketExists.js +42 -23
- package/dist-es/waiters/waitForBucketNotExists.js +42 -22
- package/dist-es/waiters/waitForObjectExists.js +42 -23
- package/dist-es/waiters/waitForObjectNotExists.js +42 -22
- package/package.json +6 -6
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
import { S3ServiceException as __BaseException } from "./S3ServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.$fault = "client";
|
|
12
|
-
Object.setPrototypeOf(this, ObjectAlreadyInActiveTierError.prototype);
|
|
4
|
+
var ObjectAlreadyInActiveTierError = (function (_super) {
|
|
5
|
+
__extends(ObjectAlreadyInActiveTierError, _super);
|
|
6
|
+
function ObjectAlreadyInActiveTierError(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "ObjectAlreadyInActiveTierError", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "ObjectAlreadyInActiveTierError";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, ObjectAlreadyInActiveTierError.prototype);
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
return ObjectAlreadyInActiveTierError;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { ObjectAlreadyInActiveTierError };
|
|
15
16
|
export var FileHeaderInfo;
|
|
16
17
|
(function (FileHeaderInfo) {
|
|
17
18
|
FileHeaderInfo["IGNORE"] = "IGNORE";
|
|
@@ -34,7 +35,7 @@ export var RestoreRequestType;
|
|
|
34
35
|
})(RestoreRequestType || (RestoreRequestType = {}));
|
|
35
36
|
export var SelectObjectContentEventStream;
|
|
36
37
|
(function (SelectObjectContentEventStream) {
|
|
37
|
-
SelectObjectContentEventStream.visit = (value, visitor)
|
|
38
|
+
SelectObjectContentEventStream.visit = function (value, visitor) {
|
|
38
39
|
if (value.Records !== undefined)
|
|
39
40
|
return visitor.Records(value.Records);
|
|
40
41
|
if (value.Stats !== undefined)
|
|
@@ -48,96 +49,36 @@ export var SelectObjectContentEventStream;
|
|
|
48
49
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
49
50
|
};
|
|
50
51
|
})(SelectObjectContentEventStream || (SelectObjectContentEventStream = {}));
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
});
|
|
60
|
-
export
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
});
|
|
76
|
-
export
|
|
77
|
-
|
|
78
|
-
});
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
...(obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }),
|
|
82
|
-
});
|
|
83
|
-
export const OutputLocationFilterSensitiveLog = (obj) => ({
|
|
84
|
-
...obj,
|
|
85
|
-
...(obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }),
|
|
86
|
-
});
|
|
87
|
-
export const CSVInputFilterSensitiveLog = (obj) => ({
|
|
88
|
-
...obj,
|
|
89
|
-
});
|
|
90
|
-
export const JSONInputFilterSensitiveLog = (obj) => ({
|
|
91
|
-
...obj,
|
|
92
|
-
});
|
|
93
|
-
export const ParquetInputFilterSensitiveLog = (obj) => ({
|
|
94
|
-
...obj,
|
|
95
|
-
});
|
|
96
|
-
export const InputSerializationFilterSensitiveLog = (obj) => ({
|
|
97
|
-
...obj,
|
|
98
|
-
});
|
|
99
|
-
export const CSVOutputFilterSensitiveLog = (obj) => ({
|
|
100
|
-
...obj,
|
|
101
|
-
});
|
|
102
|
-
export const JSONOutputFilterSensitiveLog = (obj) => ({
|
|
103
|
-
...obj,
|
|
104
|
-
});
|
|
105
|
-
export const OutputSerializationFilterSensitiveLog = (obj) => ({
|
|
106
|
-
...obj,
|
|
107
|
-
});
|
|
108
|
-
export const SelectParametersFilterSensitiveLog = (obj) => ({
|
|
109
|
-
...obj,
|
|
110
|
-
});
|
|
111
|
-
export const RestoreRequestFilterSensitiveLog = (obj) => ({
|
|
112
|
-
...obj,
|
|
113
|
-
...(obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }),
|
|
114
|
-
});
|
|
115
|
-
export const RestoreObjectRequestFilterSensitiveLog = (obj) => ({
|
|
116
|
-
...obj,
|
|
117
|
-
...(obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }),
|
|
118
|
-
});
|
|
119
|
-
export const ContinuationEventFilterSensitiveLog = (obj) => ({
|
|
120
|
-
...obj,
|
|
121
|
-
});
|
|
122
|
-
export const EndEventFilterSensitiveLog = (obj) => ({
|
|
123
|
-
...obj,
|
|
124
|
-
});
|
|
125
|
-
export const ProgressFilterSensitiveLog = (obj) => ({
|
|
126
|
-
...obj,
|
|
127
|
-
});
|
|
128
|
-
export const ProgressEventFilterSensitiveLog = (obj) => ({
|
|
129
|
-
...obj,
|
|
130
|
-
});
|
|
131
|
-
export const RecordsEventFilterSensitiveLog = (obj) => ({
|
|
132
|
-
...obj,
|
|
133
|
-
});
|
|
134
|
-
export const StatsFilterSensitiveLog = (obj) => ({
|
|
135
|
-
...obj,
|
|
136
|
-
});
|
|
137
|
-
export const StatsEventFilterSensitiveLog = (obj) => ({
|
|
138
|
-
...obj,
|
|
139
|
-
});
|
|
140
|
-
export const SelectObjectContentEventStreamFilterSensitiveLog = (obj) => {
|
|
52
|
+
export var PutObjectRetentionOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
+
export var PutObjectRetentionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
54
|
+
export var PutObjectTaggingOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
55
|
+
export var PutObjectTaggingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
56
|
+
export var PutPublicAccessBlockRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
+
export var RestoreObjectOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
+
export var GlacierJobParametersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
+
export var EncryptionFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.KMSKeyId && { KMSKeyId: SENSITIVE_STRING }))); };
|
|
60
|
+
export var MetadataEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
|
+
export var S3LocationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Encryption && { Encryption: EncryptionFilterSensitiveLog(obj.Encryption) }))); };
|
|
62
|
+
export var OutputLocationFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.S3 && { S3: S3LocationFilterSensitiveLog(obj.S3) }))); };
|
|
63
|
+
export var CSVInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
|
+
export var JSONInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
|
+
export var ParquetInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
66
|
+
export var InputSerializationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
67
|
+
export var CSVOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
+
export var JSONOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
+
export var OutputSerializationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
70
|
+
export var SelectParametersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
71
|
+
export var RestoreRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.OutputLocation && { OutputLocation: OutputLocationFilterSensitiveLog(obj.OutputLocation) }))); };
|
|
72
|
+
export var RestoreObjectRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.RestoreRequest && { RestoreRequest: RestoreRequestFilterSensitiveLog(obj.RestoreRequest) }))); };
|
|
73
|
+
export var ContinuationEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
+
export var EndEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
75
|
+
export var ProgressFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
76
|
+
export var ProgressEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
77
|
+
export var RecordsEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
|
+
export var StatsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
|
+
export var StatsEventFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
|
+
export var SelectObjectContentEventStreamFilterSensitiveLog = function (obj) {
|
|
81
|
+
var _a;
|
|
141
82
|
if (obj.Records !== undefined)
|
|
142
83
|
return { Records: RecordsEventFilterSensitiveLog(obj.Records) };
|
|
143
84
|
if (obj.Stats !== undefined)
|
|
@@ -149,43 +90,15 @@ export const SelectObjectContentEventStreamFilterSensitiveLog = (obj) => {
|
|
|
149
90
|
if (obj.End !== undefined)
|
|
150
91
|
return { End: EndEventFilterSensitiveLog(obj.End) };
|
|
151
92
|
if (obj.$unknown !== undefined)
|
|
152
|
-
return { [obj.$unknown[0]]
|
|
93
|
+
return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
|
|
153
94
|
};
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
});
|
|
158
|
-
export
|
|
159
|
-
|
|
160
|
-
});
|
|
161
|
-
export
|
|
162
|
-
|
|
163
|
-
});
|
|
164
|
-
export const SelectObjectContentRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
167
|
-
});
|
|
168
|
-
export const UploadPartOutputFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
171
|
-
});
|
|
172
|
-
export const UploadPartRequestFilterSensitiveLog = (obj) => ({
|
|
173
|
-
...obj,
|
|
174
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
175
|
-
});
|
|
176
|
-
export const CopyPartResultFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const UploadPartCopyOutputFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
182
|
-
});
|
|
183
|
-
export const UploadPartCopyRequestFilterSensitiveLog = (obj) => ({
|
|
184
|
-
...obj,
|
|
185
|
-
...(obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }),
|
|
186
|
-
...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }),
|
|
187
|
-
});
|
|
188
|
-
export const WriteGetObjectResponseRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
...(obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }),
|
|
191
|
-
});
|
|
95
|
+
export var SelectObjectContentOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Payload && { Payload: "STREAMING_CONTENT" }))); };
|
|
96
|
+
export var RequestProgressFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
97
|
+
export var ScanRangeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
+
export var SelectObjectContentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
|
|
99
|
+
export var UploadPartOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
|
|
100
|
+
export var UploadPartRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
|
|
101
|
+
export var CopyPartResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
+
export var UploadPartCopyOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
|
|
103
|
+
export var UploadPartCopyRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING })), (obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }))); };
|
|
104
|
+
export var WriteGetObjectResponseRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListObjectsV2Command, } from "../commands/ListObjectsV2Command";
|
|
2
3
|
import { S3 } from "../S3";
|
|
3
4
|
import { S3Client } from "../S3Client";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListObjectsV2Command(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listObjectsV2.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.ContinuationToken = token;
|
|
16
|
-
input["MaxKeys"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof S3) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof S3Client) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextContinuationToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListObjectsV2(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListObjectsV2_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.ContinuationToken = token;
|
|
49
|
+
input["MaxKeys"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof S3)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof S3Client)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected S3 | S3Client");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextContinuationToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListPartsCommand } from "../commands/ListPartsCommand";
|
|
2
3
|
import { S3 } from "../S3";
|
|
3
4
|
import { S3Client } from "../S3Client";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPartsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listParts.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.PartNumberMarker = token;
|
|
16
|
-
input["MaxParts"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof S3) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof S3Client) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextPartNumberMarker;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListParts(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListParts_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.PartNumberMarker = token;
|
|
49
|
+
input["MaxParts"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof S3)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof S3Client)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected S3 | S3Client");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextPartNumberMarker;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|