Skip to content

Commit 49862ce

Browse files
committed
test(client-secrets-manager): schema testing
1 parent d854030 commit 49862ce

File tree

236 files changed

+14565
-1626
lines changed

Some content is hidden

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

236 files changed

+14565
-1626
lines changed

clients/client-s3/src/S3Client.ts

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
getHttpAuthSchemeEndpointRuleSetPlugin,
3636
getHttpSigningPlugin,
3737
} from "@smithy/core";
38+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
3839
import {
3940
EventStreamSerdeInputConfig,
4041
EventStreamSerdeResolvedConfig,
@@ -841,6 +842,7 @@ export class S3Client extends __Client<
841842
const _config_10 = resolveS3Config(_config_9, { session: [() => this, CreateSessionCommand] });
842843
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
843844
this.config = _config_11;
845+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
844846
this.middlewareStack.use(getUserAgentPlugin(this.config));
845847
this.middlewareStack.use(getRetryPlugin(this.config));
846848
this.middlewareStack.use(getContentLengthPlugin(this.config));

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

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
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";
54
import { Command as $Command } from "@smithy/smithy-client";
65
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
76

87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { AbortMultipartUploadOutput, AbortMultipartUploadRequest } from "../models/models_0";
10-
import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml";
119
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10+
import { AbortMultipartUpload } from "../schemas/com.amazonaws.s3";
1211

1312
/**
1413
* @public
@@ -183,17 +182,12 @@ export class AbortMultipartUploadCommand extends $Command
183182
Key: { type: "contextParams", name: "Key" },
184183
})
185184
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
186-
return [
187-
getSerdePlugin(config, this.serialize, this.deserialize),
188-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
189-
getThrow200ExceptionsPlugin(config),
190-
];
185+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
191186
})
192187
.s("AmazonS3", "AbortMultipartUpload", {})
193188
.n("S3Client", "AbortMultipartUploadCommand")
194189
.f(void 0, void 0)
195-
.ser(se_AbortMultipartUploadCommand)
196-
.de(de_AbortMultipartUploadCommand)
190+
.sc(AbortMultipartUpload)
197191
.build() {
198192
/** @internal type navigation helper, not in runtime. */
199193
protected declare static __types: {

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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";
65
import { Command as $Command } from "@smithy/smithy-client";
76
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
87

@@ -13,8 +12,8 @@ import {
1312
CompleteMultipartUploadRequest,
1413
CompleteMultipartUploadRequestFilterSensitiveLog,
1514
} from "../models/models_0";
16-
import { de_CompleteMultipartUploadCommand, se_CompleteMultipartUploadCommand } from "../protocols/Aws_restXml";
1715
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
16+
import { CompleteMultipartUpload } from "../schemas/com.amazonaws.s3";
1817

1918
/**
2019
* @public
@@ -325,7 +324,6 @@ export class CompleteMultipartUploadCommand extends $Command
325324
})
326325
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
327326
return [
328-
getSerdePlugin(config, this.serialize, this.deserialize),
329327
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
330328
getThrow200ExceptionsPlugin(config),
331329
getSsecPlugin(config),
@@ -334,8 +332,7 @@ export class CompleteMultipartUploadCommand extends $Command
334332
.s("AmazonS3", "CompleteMultipartUpload", {})
335333
.n("S3Client", "CompleteMultipartUploadCommand")
336334
.f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog)
337-
.ser(se_CompleteMultipartUploadCommand)
338-
.de(de_CompleteMultipartUploadCommand)
335+
.sc(CompleteMultipartUpload)
339336
.build() {
340337
/** @internal type navigation helper, not in runtime. */
341338
protected declare static __types: {

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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";
65
import { Command as $Command } from "@smithy/smithy-client";
76
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
87

@@ -13,8 +12,8 @@ import {
1312
CopyObjectRequest,
1413
CopyObjectRequestFilterSensitiveLog,
1514
} from "../models/models_0";
16-
import { de_CopyObjectCommand, se_CopyObjectCommand } from "../protocols/Aws_restXml";
1715
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
16+
import { CopyObject } from "../schemas/com.amazonaws.s3";
1817

1918
/**
2019
* @public
@@ -370,7 +369,6 @@ export class CopyObjectCommand extends $Command
370369
})
371370
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
372371
return [
373-
getSerdePlugin(config, this.serialize, this.deserialize),
374372
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
375373
getThrow200ExceptionsPlugin(config),
376374
getSsecPlugin(config),
@@ -379,8 +377,7 @@ export class CopyObjectCommand extends $Command
379377
.s("AmazonS3", "CopyObject", {})
380378
.n("S3Client", "CopyObjectCommand")
381379
.f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog)
382-
.ser(se_CopyObjectCommand)
383-
.de(de_CopyObjectCommand)
380+
.sc(CopyObject)
384381
.build() {
385382
/** @internal type navigation helper, not in runtime. */
386383
protected declare static __types: {

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
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";
65
import { Command as $Command } from "@smithy/smithy-client";
76
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
87

98
import { commonParams } from "../endpoint/EndpointParameters";
109
import { CreateBucketOutput, CreateBucketRequest } from "../models/models_0";
11-
import { de_CreateBucketCommand, se_CreateBucketCommand } from "../protocols/Aws_restXml";
1210
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
11+
import { CreateBucket } from "../schemas/com.amazonaws.s3";
1312

1413
/**
1514
* @public
@@ -286,7 +285,6 @@ export class CreateBucketCommand extends $Command
286285
})
287286
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
288287
return [
289-
getSerdePlugin(config, this.serialize, this.deserialize),
290288
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
291289
getThrow200ExceptionsPlugin(config),
292290
getLocationConstraintPlugin(config),
@@ -295,8 +293,7 @@ export class CreateBucketCommand extends $Command
295293
.s("AmazonS3", "CreateBucket", {})
296294
.n("S3Client", "CreateBucketCommand")
297295
.f(void 0, void 0)
298-
.ser(se_CreateBucketCommand)
299-
.de(de_CreateBucketCommand)
296+
.sc(CreateBucket)
300297
.build() {
301298
/** @internal type navigation helper, not in runtime. */
302299
protected declare static __types: {

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

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
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";
54
import { Command as $Command } from "@smithy/smithy-client";
65
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
76

87
import { commonParams } from "../endpoint/EndpointParameters";
98
import { CreateBucketMetadataTableConfigurationRequest } from "../models/models_0";
10-
import {
11-
de_CreateBucketMetadataTableConfigurationCommand,
12-
se_CreateBucketMetadataTableConfigurationCommand,
13-
} from "../protocols/Aws_restXml";
149
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
10+
import { CreateBucketMetadataTableConfiguration } from "../schemas/com.amazonaws.s3";
1511

1612
/**
1713
* @public
@@ -141,7 +137,6 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
141137
})
142138
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
143139
return [
144-
getSerdePlugin(config, this.serialize, this.deserialize),
145140
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
146141
getFlexibleChecksumsPlugin(config, {
147142
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
@@ -152,8 +147,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
152147
.s("AmazonS3", "CreateBucketMetadataTableConfiguration", {})
153148
.n("S3Client", "CreateBucketMetadataTableConfigurationCommand")
154149
.f(void 0, void 0)
155-
.ser(se_CreateBucketMetadataTableConfigurationCommand)
156-
.de(de_CreateBucketMetadataTableConfigurationCommand)
150+
.sc(CreateBucketMetadataTableConfiguration)
157151
.build() {
158152
/** @internal type navigation helper, not in runtime. */
159153
protected declare static __types: {

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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";
65
import { Command as $Command } from "@smithy/smithy-client";
76
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
87

@@ -13,8 +12,8 @@ import {
1312
CreateMultipartUploadRequest,
1413
CreateMultipartUploadRequestFilterSensitiveLog,
1514
} from "../models/models_0";
16-
import { de_CreateMultipartUploadCommand, se_CreateMultipartUploadCommand } from "../protocols/Aws_restXml";
1715
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
16+
import { CreateMultipartUpload } from "../schemas/com.amazonaws.s3";
1817

1918
/**
2019
* @public
@@ -409,7 +408,6 @@ export class CreateMultipartUploadCommand extends $Command
409408
})
410409
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
411410
return [
412-
getSerdePlugin(config, this.serialize, this.deserialize),
413411
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
414412
getThrow200ExceptionsPlugin(config),
415413
getSsecPlugin(config),
@@ -418,8 +416,7 @@ export class CreateMultipartUploadCommand extends $Command
418416
.s("AmazonS3", "CreateMultipartUpload", {})
419417
.n("S3Client", "CreateMultipartUploadCommand")
420418
.f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog)
421-
.ser(se_CreateMultipartUploadCommand)
422-
.de(de_CreateMultipartUploadCommand)
419+
.sc(CreateMultipartUpload)
423420
.build() {
424421
/** @internal type navigation helper, not in runtime. */
425422
protected declare static __types: {

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

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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";
54
import { Command as $Command } from "@smithy/smithy-client";
65
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
76

@@ -12,8 +11,8 @@ import {
1211
CreateSessionRequest,
1312
CreateSessionRequestFilterSensitiveLog,
1413
} from "../models/models_0";
15-
import { de_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restXml";
1614
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
15+
import { CreateSession } from "../schemas/com.amazonaws.s3";
1716

1817
/**
1918
* @public
@@ -203,17 +202,12 @@ export class CreateSessionCommand extends $Command
203202
Bucket: { type: "contextParams", name: "Bucket" },
204203
})
205204
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
206-
return [
207-
getSerdePlugin(config, this.serialize, this.deserialize),
208-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
209-
getThrow200ExceptionsPlugin(config),
210-
];
205+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
211206
})
212207
.s("AmazonS3", "CreateSession", {})
213208
.n("S3Client", "CreateSessionCommand")
214209
.f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog)
215-
.ser(se_CreateSessionCommand)
216-
.de(de_CreateSessionCommand)
210+
.sc(CreateSession)
217211
.build() {
218212
/** @internal type navigation helper, not in runtime. */
219213
protected declare static __types: {

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3-
import { getSerdePlugin } from "@smithy/middleware-serde";
43
import { Command as $Command } from "@smithy/smithy-client";
54
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
65

76
import { commonParams } from "../endpoint/EndpointParameters";
87
import { DeleteBucketAnalyticsConfigurationRequest } from "../models/models_0";
9-
import {
10-
de_DeleteBucketAnalyticsConfigurationCommand,
11-
se_DeleteBucketAnalyticsConfigurationCommand,
12-
} from "../protocols/Aws_restXml";
138
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
9+
import { DeleteBucketAnalyticsConfiguration } from "../schemas/com.amazonaws.s3";
1410

1511
/**
1612
* @public
@@ -105,16 +101,12 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command
105101
Bucket: { type: "contextParams", name: "Bucket" },
106102
})
107103
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
108-
return [
109-
getSerdePlugin(config, this.serialize, this.deserialize),
110-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
111-
];
104+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
112105
})
113106
.s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {})
114107
.n("S3Client", "DeleteBucketAnalyticsConfigurationCommand")
115108
.f(void 0, void 0)
116-
.ser(se_DeleteBucketAnalyticsConfigurationCommand)
117-
.de(de_DeleteBucketAnalyticsConfigurationCommand)
109+
.sc(DeleteBucketAnalyticsConfiguration)
118110
.build() {
119111
/** @internal type navigation helper, not in runtime. */
120112
protected declare static __types: {

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3-
import { getSerdePlugin } from "@smithy/middleware-serde";
43
import { Command as $Command } from "@smithy/smithy-client";
54
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
65

76
import { commonParams } from "../endpoint/EndpointParameters";
87
import { DeleteBucketRequest } from "../models/models_0";
9-
import { de_DeleteBucketCommand, se_DeleteBucketCommand } from "../protocols/Aws_restXml";
108
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
9+
import { DeleteBucket } from "../schemas/com.amazonaws.s3";
1110

1211
/**
1312
* @public
@@ -141,16 +140,12 @@ export class DeleteBucketCommand extends $Command
141140
Bucket: { type: "contextParams", name: "Bucket" },
142141
})
143142
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
144-
return [
145-
getSerdePlugin(config, this.serialize, this.deserialize),
146-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
147-
];
143+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
148144
})
149145
.s("AmazonS3", "DeleteBucket", {})
150146
.n("S3Client", "DeleteBucketCommand")
151147
.f(void 0, void 0)
152-
.ser(se_DeleteBucketCommand)
153-
.de(de_DeleteBucketCommand)
148+
.sc(DeleteBucket)
154149
.build() {
155150
/** @internal type navigation helper, not in runtime. */
156151
protected declare static __types: {

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// smithy-typescript generated code
22
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3-
import { getSerdePlugin } from "@smithy/middleware-serde";
43
import { Command as $Command } from "@smithy/smithy-client";
54
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
65

76
import { commonParams } from "../endpoint/EndpointParameters";
87
import { DeleteBucketCorsRequest } from "../models/models_0";
9-
import { de_DeleteBucketCorsCommand, se_DeleteBucketCorsCommand } from "../protocols/Aws_restXml";
108
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
9+
import { DeleteBucketCors } from "../schemas/com.amazonaws.s3";
1110

1211
/**
1312
* @public
@@ -107,16 +106,12 @@ export class DeleteBucketCorsCommand extends $Command
107106
Bucket: { type: "contextParams", name: "Bucket" },
108107
})
109108
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
110-
return [
111-
getSerdePlugin(config, this.serialize, this.deserialize),
112-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
113-
];
109+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
114110
})
115111
.s("AmazonS3", "DeleteBucketCors", {})
116112
.n("S3Client", "DeleteBucketCorsCommand")
117113
.f(void 0, void 0)
118-
.ser(se_DeleteBucketCorsCommand)
119-
.de(de_DeleteBucketCorsCommand)
114+
.sc(DeleteBucketCors)
120115
.build() {
121116
/** @internal type navigation helper, not in runtime. */
122117
protected declare static __types: {

0 commit comments

Comments
 (0)