@aws-sdk/client-s3 3.987.0 → 3.988.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 +126 -3998
- package/dist-cjs/models/S3ServiceException.js +12 -0
- package/dist-cjs/models/errors.js +203 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +3256 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +102 -96
- package/dist-types/schemas/schemas_0.d.ts +23 -16
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -16
- package/package.json +18 -18
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.S3ServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class S3ServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, S3ServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.S3ServiceException = S3ServiceException;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectAlreadyInActiveTierError = exports.IdempotencyParameterMismatch = exports.TooManyParts = exports.InvalidWriteOffset = exports.InvalidRequest = exports.EncryptionTypeMismatch = exports.NotFound = exports.NoSuchKey = exports.InvalidObjectState = exports.NoSuchBucket = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.AccessDenied = exports.NoSuchUpload = void 0;
|
|
4
|
+
const S3ServiceException_1 = require("./S3ServiceException");
|
|
5
|
+
class NoSuchUpload extends S3ServiceException_1.S3ServiceException {
|
|
6
|
+
name = "NoSuchUpload";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "NoSuchUpload",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, NoSuchUpload.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.NoSuchUpload = NoSuchUpload;
|
|
18
|
+
class AccessDenied extends S3ServiceException_1.S3ServiceException {
|
|
19
|
+
name = "AccessDenied";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "AccessDenied",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, AccessDenied.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AccessDenied = AccessDenied;
|
|
31
|
+
class ObjectNotInActiveTierError extends S3ServiceException_1.S3ServiceException {
|
|
32
|
+
name = "ObjectNotInActiveTierError";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ObjectNotInActiveTierError",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ObjectNotInActiveTierError.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ObjectNotInActiveTierError = ObjectNotInActiveTierError;
|
|
44
|
+
class BucketAlreadyExists extends S3ServiceException_1.S3ServiceException {
|
|
45
|
+
name = "BucketAlreadyExists";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "BucketAlreadyExists",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, BucketAlreadyExists.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.BucketAlreadyExists = BucketAlreadyExists;
|
|
57
|
+
class BucketAlreadyOwnedByYou extends S3ServiceException_1.S3ServiceException {
|
|
58
|
+
name = "BucketAlreadyOwnedByYou";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "BucketAlreadyOwnedByYou",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, BucketAlreadyOwnedByYou.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.BucketAlreadyOwnedByYou = BucketAlreadyOwnedByYou;
|
|
70
|
+
class NoSuchBucket extends S3ServiceException_1.S3ServiceException {
|
|
71
|
+
name = "NoSuchBucket";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "NoSuchBucket",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, NoSuchBucket.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.NoSuchBucket = NoSuchBucket;
|
|
83
|
+
class InvalidObjectState extends S3ServiceException_1.S3ServiceException {
|
|
84
|
+
name = "InvalidObjectState";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
StorageClass;
|
|
87
|
+
AccessTier;
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "InvalidObjectState",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
Object.setPrototypeOf(this, InvalidObjectState.prototype);
|
|
95
|
+
this.StorageClass = opts.StorageClass;
|
|
96
|
+
this.AccessTier = opts.AccessTier;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.InvalidObjectState = InvalidObjectState;
|
|
100
|
+
class NoSuchKey extends S3ServiceException_1.S3ServiceException {
|
|
101
|
+
name = "NoSuchKey";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "NoSuchKey",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, NoSuchKey.prototype);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.NoSuchKey = NoSuchKey;
|
|
113
|
+
class NotFound extends S3ServiceException_1.S3ServiceException {
|
|
114
|
+
name = "NotFound";
|
|
115
|
+
$fault = "client";
|
|
116
|
+
constructor(opts) {
|
|
117
|
+
super({
|
|
118
|
+
name: "NotFound",
|
|
119
|
+
$fault: "client",
|
|
120
|
+
...opts,
|
|
121
|
+
});
|
|
122
|
+
Object.setPrototypeOf(this, NotFound.prototype);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.NotFound = NotFound;
|
|
126
|
+
class EncryptionTypeMismatch extends S3ServiceException_1.S3ServiceException {
|
|
127
|
+
name = "EncryptionTypeMismatch";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "EncryptionTypeMismatch",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, EncryptionTypeMismatch.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.EncryptionTypeMismatch = EncryptionTypeMismatch;
|
|
139
|
+
class InvalidRequest extends S3ServiceException_1.S3ServiceException {
|
|
140
|
+
name = "InvalidRequest";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "InvalidRequest",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, InvalidRequest.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.InvalidRequest = InvalidRequest;
|
|
152
|
+
class InvalidWriteOffset extends S3ServiceException_1.S3ServiceException {
|
|
153
|
+
name = "InvalidWriteOffset";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "InvalidWriteOffset",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, InvalidWriteOffset.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.InvalidWriteOffset = InvalidWriteOffset;
|
|
165
|
+
class TooManyParts extends S3ServiceException_1.S3ServiceException {
|
|
166
|
+
name = "TooManyParts";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "TooManyParts",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, TooManyParts.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.TooManyParts = TooManyParts;
|
|
178
|
+
class IdempotencyParameterMismatch extends S3ServiceException_1.S3ServiceException {
|
|
179
|
+
name = "IdempotencyParameterMismatch";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "IdempotencyParameterMismatch",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, IdempotencyParameterMismatch.prototype);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.IdempotencyParameterMismatch = IdempotencyParameterMismatch;
|
|
191
|
+
class ObjectAlreadyInActiveTierError extends S3ServiceException_1.S3ServiceException {
|
|
192
|
+
name = "ObjectAlreadyInActiveTierError";
|
|
193
|
+
$fault = "client";
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ObjectAlreadyInActiveTierError",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ObjectAlreadyInActiveTierError.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.ObjectAlreadyInActiveTierError = ObjectAlreadyInActiveTierError;
|
|
@@ -11,6 +11,7 @@ const util_stream_1 = require("@smithy/util-stream");
|
|
|
11
11
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
12
12
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
13
13
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
14
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
14
15
|
const getRuntimeConfig = (config) => {
|
|
15
16
|
return {
|
|
16
17
|
apiVersion: "2006-03-01",
|
|
@@ -37,6 +38,7 @@ const getRuntimeConfig = (config) => {
|
|
|
37
38
|
protocol: config?.protocol ?? protocols_1.AwsRestXmlProtocol,
|
|
38
39
|
protocolSettings: config?.protocolSettings ?? {
|
|
39
40
|
defaultNamespace: "com.amazonaws.s3",
|
|
41
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
40
42
|
xmlNamespace: "http://s3.amazonaws.com/doc/2006-03-01/",
|
|
41
43
|
version: "2006-03-01",
|
|
42
44
|
serviceTarget: "AmazonS3",
|