Skip to content

Commit 5dc79a4

Browse files
committed
chore: unset s3 schema
1 parent 89854b2 commit 5dc79a4

File tree

121 files changed

+12865
-10234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+12865
-10234
lines changed

clients/client-s3/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@aws-sdk/util-endpoints": "*",
4848
"@aws-sdk/util-user-agent-browser": "*",
4949
"@aws-sdk/util-user-agent-node": "*",
50+
"@aws-sdk/xml-builder": "*",
5051
"@smithy/config-resolver": "^4.1.5",
5152
"@smithy/core": "^3.8.0",
5253
"@smithy/eventstream-serde-browser": "^4.0.5",
@@ -80,7 +81,9 @@
8081
"@smithy/util-stream": "^4.2.4",
8182
"@smithy/util-utf8": "^4.0.0",
8283
"@smithy/util-waiter": "^4.0.7",
83-
"tslib": "^2.6.2"
84+
"@types/uuid": "^9.0.1",
85+
"tslib": "^2.6.2",
86+
"uuid": "^9.0.1"
8487
},
8588
"devDependencies": {
8689
"@aws-sdk/signature-v4-crt": "*",

clients/client-s3/src/S3Client.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
getHttpAuthSchemeEndpointRuleSetPlugin,
3636
getHttpSigningPlugin,
3737
} from "@smithy/core";
38-
import { getSchemaSerdePlugin } from "@smithy/core/schema";
3938
import {
4039
EventStreamSerdeInputConfig,
4140
EventStreamSerdeResolvedConfig,
@@ -57,16 +56,13 @@ import {
5756
CheckOptionalClientConfig as __CheckOptionalClientConfig,
5857
Checksum as __Checksum,
5958
ChecksumConstructor as __ChecksumConstructor,
60-
ClientProtocol,
6159
Decoder as __Decoder,
6260
Encoder as __Encoder,
6361
EndpointV2 as __EndpointV2,
6462
EventStreamSerdeProvider as __EventStreamSerdeProvider,
6563
Hash as __Hash,
6664
HashConstructor as __HashConstructor,
6765
HttpHandlerOptions as __HttpHandlerOptions,
68-
HttpRequest,
69-
HttpResponse,
7066
Logger as __Logger,
7167
Provider as __Provider,
7268
Provider,
@@ -776,16 +772,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
776772
*/
777773
extensions?: RuntimeExtension[];
778774

779-
/**
780-
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
781-
* may be overridden. A default will always be set by the client.
782-
* Available options depend on the service's supported protocols and will not be validated by
783-
* the client.
784-
* @alpha
785-
*
786-
*/
787-
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
788-
789775
/**
790776
* The function that provides necessary utilities for generating and parsing event stream
791777
*/
@@ -888,7 +874,6 @@ export class S3Client extends __Client<
888874
const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] });
889875
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
890876
this.config = _config_11;
891-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
892877
this.middlewareStack.use(getUserAgentPlugin(this.config));
893878
this.middlewareStack.use(getRetryPlugin(this.config));
894879
this.middlewareStack.use(getContentLengthPlugin(this.config));

clients/client-s3/src/commands/AbortMultipartUploadCommand.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// smithy-typescript generated code
22
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
33
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
56
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
67

78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { AbortMultipartUploadOutput, AbortMultipartUploadRequest } from "../models/models_0";
10+
import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml";
911
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10-
import { AbortMultipartUpload } from "../schemas/schemas";
1112

1213
/**
1314
* @public
@@ -177,12 +178,17 @@ export class AbortMultipartUploadCommand extends $Command
177178
Key: { type: "contextParams", name: "Key" },
178179
})
179180
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
180-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
181+
return [
182+
getSerdePlugin(config, this.serialize, this.deserialize),
183+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
184+
getThrow200ExceptionsPlugin(config),
185+
];
181186
})
182187
.s("AmazonS3", "AbortMultipartUpload", {})
183188
.n("S3Client", "AbortMultipartUploadCommand")
184-
185-
.sc(AbortMultipartUpload)
189+
.f(void 0, void 0)
190+
.ser(se_AbortMultipartUploadCommand)
191+
.de(de_AbortMultipartUploadCommand)
186192
.build() {
187193
/** @internal type navigation helper, not in runtime. */
188194
protected declare static __types: {

clients/client-s3/src/commands/CompleteMultipartUploadCommand.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
33
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
44
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
67
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
78

89
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CompleteMultipartUploadOutput, CompleteMultipartUploadRequest } from "../models/models_0";
10+
import {
11+
CompleteMultipartUploadOutput,
12+
CompleteMultipartUploadOutputFilterSensitiveLog,
13+
CompleteMultipartUploadRequest,
14+
CompleteMultipartUploadRequestFilterSensitiveLog,
15+
} from "../models/models_0";
16+
import { de_CompleteMultipartUploadCommand, se_CompleteMultipartUploadCommand } from "../protocols/Aws_restXml";
1017
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
11-
import { CompleteMultipartUpload } from "../schemas/schemas";
1218

1319
/**
1420
* @public
@@ -308,15 +314,17 @@ export class CompleteMultipartUploadCommand extends $Command
308314
})
309315
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
310316
return [
317+
getSerdePlugin(config, this.serialize, this.deserialize),
311318
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
312319
getThrow200ExceptionsPlugin(config),
313320
getSsecPlugin(config),
314321
];
315322
})
316323
.s("AmazonS3", "CompleteMultipartUpload", {})
317324
.n("S3Client", "CompleteMultipartUploadCommand")
318-
319-
.sc(CompleteMultipartUpload)
325+
.f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog)
326+
.ser(se_CompleteMultipartUploadCommand)
327+
.de(de_CompleteMultipartUploadCommand)
320328
.build() {
321329
/** @internal type navigation helper, not in runtime. */
322330
protected declare static __types: {

clients/client-s3/src/commands/CopyObjectCommand.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
33
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
44
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
67
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
78

89
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CopyObjectOutput, CopyObjectRequest } from "../models/models_0";
10+
import {
11+
CopyObjectOutput,
12+
CopyObjectOutputFilterSensitiveLog,
13+
CopyObjectRequest,
14+
CopyObjectRequestFilterSensitiveLog,
15+
} from "../models/models_0";
16+
import { de_CopyObjectCommand, se_CopyObjectCommand } from "../protocols/Aws_restXml";
1017
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
11-
import { CopyObject } from "../schemas/schemas";
1218

1319
/**
1420
* @public
@@ -361,15 +367,17 @@ export class CopyObjectCommand extends $Command
361367
})
362368
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
363369
return [
370+
getSerdePlugin(config, this.serialize, this.deserialize),
364371
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
365372
getThrow200ExceptionsPlugin(config),
366373
getSsecPlugin(config),
367374
];
368375
})
369376
.s("AmazonS3", "CopyObject", {})
370377
.n("S3Client", "CopyObjectCommand")
371-
372-
.sc(CopyObject)
378+
.f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog)
379+
.ser(se_CopyObjectCommand)
380+
.de(de_CopyObjectCommand)
373381
.build() {
374382
/** @internal type navigation helper, not in runtime. */
375383
protected declare static __types: {

clients/client-s3/src/commands/CreateBucketCommand.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
33
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
44
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
67
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
78

89
import { commonParams } from "../endpoint/EndpointParameters";
910
import { CreateBucketOutput, CreateBucketRequest } from "../models/models_0";
11+
import { de_CreateBucketCommand, se_CreateBucketCommand } from "../protocols/Aws_restXml";
1012
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
11-
import { CreateBucket } from "../schemas/schemas";
1213

1314
/**
1415
* @public
@@ -295,15 +296,17 @@ export class CreateBucketCommand extends $Command
295296
})
296297
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
297298
return [
299+
getSerdePlugin(config, this.serialize, this.deserialize),
298300
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
299301
getThrow200ExceptionsPlugin(config),
300302
getLocationConstraintPlugin(config),
301303
];
302304
})
303305
.s("AmazonS3", "CreateBucket", {})
304306
.n("S3Client", "CreateBucketCommand")
305-
306-
.sc(CreateBucket)
307+
.f(void 0, void 0)
308+
.ser(se_CreateBucketCommand)
309+
.de(de_CreateBucketCommand)
307310
.build() {
308311
/** @internal type navigation helper, not in runtime. */
309312
protected declare static __types: {

clients/client-s3/src/commands/CreateBucketMetadataConfigurationCommand.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// smithy-typescript generated code
22
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
33
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
56
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
67

78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateBucketMetadataConfigurationRequest } from "../models/models_0";
10+
import {
11+
de_CreateBucketMetadataConfigurationCommand,
12+
se_CreateBucketMetadataConfigurationCommand,
13+
} from "../protocols/Aws_restXml";
914
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10-
import { CreateBucketMetadataConfiguration } from "../schemas/schemas";
1115

1216
/**
1317
* @public
@@ -183,6 +187,7 @@ export class CreateBucketMetadataConfigurationCommand extends $Command
183187
})
184188
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
185189
return [
190+
getSerdePlugin(config, this.serialize, this.deserialize),
186191
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
187192
getFlexibleChecksumsPlugin(config, {
188193
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
@@ -192,8 +197,9 @@ export class CreateBucketMetadataConfigurationCommand extends $Command
192197
})
193198
.s("AmazonS3", "CreateBucketMetadataConfiguration", {})
194199
.n("S3Client", "CreateBucketMetadataConfigurationCommand")
195-
196-
.sc(CreateBucketMetadataConfiguration)
200+
.f(void 0, void 0)
201+
.ser(se_CreateBucketMetadataConfigurationCommand)
202+
.de(de_CreateBucketMetadataConfigurationCommand)
197203
.build() {
198204
/** @internal type navigation helper, not in runtime. */
199205
protected declare static __types: {

clients/client-s3/src/commands/CreateBucketMetadataTableConfigurationCommand.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// smithy-typescript generated code
22
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
33
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
56
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
67

78
import { commonParams } from "../endpoint/EndpointParameters";
89
import { CreateBucketMetadataTableConfigurationRequest } from "../models/models_0";
10+
import {
11+
de_CreateBucketMetadataTableConfigurationCommand,
12+
se_CreateBucketMetadataTableConfigurationCommand,
13+
} from "../protocols/Aws_restXml";
914
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10-
import { CreateBucketMetadataTableConfiguration } from "../schemas/schemas";
1115

1216
/**
1317
* @public
@@ -150,6 +154,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
150154
})
151155
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
152156
return [
157+
getSerdePlugin(config, this.serialize, this.deserialize),
153158
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
154159
getFlexibleChecksumsPlugin(config, {
155160
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
@@ -159,8 +164,9 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
159164
})
160165
.s("AmazonS3", "CreateBucketMetadataTableConfiguration", {})
161166
.n("S3Client", "CreateBucketMetadataTableConfigurationCommand")
162-
163-
.sc(CreateBucketMetadataTableConfiguration)
167+
.f(void 0, void 0)
168+
.ser(se_CreateBucketMetadataTableConfigurationCommand)
169+
.de(de_CreateBucketMetadataTableConfigurationCommand)
164170
.build() {
165171
/** @internal type navigation helper, not in runtime. */
166172
protected declare static __types: {

clients/client-s3/src/commands/CreateMultipartUploadCommand.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
33
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
44
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5+
import { getSerdePlugin } from "@smithy/middleware-serde";
56
import { Command as $Command } from "@smithy/smithy-client";
67
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
78

89
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CreateMultipartUploadOutput, CreateMultipartUploadRequest } from "../models/models_0";
10+
import {
11+
CreateMultipartUploadOutput,
12+
CreateMultipartUploadOutputFilterSensitiveLog,
13+
CreateMultipartUploadRequest,
14+
CreateMultipartUploadRequestFilterSensitiveLog,
15+
} from "../models/models_0";
16+
import { de_CreateMultipartUploadCommand, se_CreateMultipartUploadCommand } from "../protocols/Aws_restXml";
1017
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
11-
import { CreateMultipartUpload } from "../schemas/schemas";
1218

1319
/**
1420
* @public
@@ -386,15 +392,17 @@ export class CreateMultipartUploadCommand extends $Command
386392
})
387393
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
388394
return [
395+
getSerdePlugin(config, this.serialize, this.deserialize),
389396
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
390397
getThrow200ExceptionsPlugin(config),
391398
getSsecPlugin(config),
392399
];
393400
})
394401
.s("AmazonS3", "CreateMultipartUpload", {})
395402
.n("S3Client", "CreateMultipartUploadCommand")
396-
397-
.sc(CreateMultipartUpload)
403+
.f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog)
404+
.ser(se_CreateMultipartUploadCommand)
405+
.de(de_CreateMultipartUploadCommand)
398406
.build() {
399407
/** @internal type navigation helper, not in runtime. */
400408
protected declare static __types: {

clients/client-s3/src/commands/CreateSessionCommand.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
// smithy-typescript generated code
22
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
33
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4+
import { getSerdePlugin } from "@smithy/middleware-serde";
45
import { Command as $Command } from "@smithy/smithy-client";
56
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
67

78
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0";
9+
import {
10+
CreateSessionOutput,
11+
CreateSessionOutputFilterSensitiveLog,
12+
CreateSessionRequest,
13+
CreateSessionRequestFilterSensitiveLog,
14+
} from "../models/models_0";
15+
import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restXml";
916
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10-
import { CreateSession } from "../schemas/schemas";
1117

1218
/**
1319
* @public
@@ -192,12 +198,17 @@ export class CreateSessionCommand extends $Command
192198
Bucket: { type: "contextParams", name: "Bucket" },
193199
})
194200
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
195-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
201+
return [
202+
getSerdePlugin(config, this.serialize, this.deserialize),
203+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
204+
getThrow200ExceptionsPlugin(config),
205+
];
196206
})
197207
.s("AmazonS3", "CreateSession", {})
198208
.n("S3Client", "CreateSessionCommand")
199-
200-
.sc(CreateSession)
209+
.f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog)
210+
.ser(se_CreateSessionCommand)
211+
.de(de_CreateSessionCommand)
201212
.build() {
202213
/** @internal type navigation helper, not in runtime. */
203214
protected declare static __types: {

0 commit comments

Comments
 (0)