Skip to content

Commit 9dfd04e

Browse files
committed
test(client-secrets-manager): schema testing
1 parent 4ace561 commit 9dfd04e

File tree

145 files changed

+10565
-1213
lines changed

Some content is hidden

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

145 files changed

+10565
-1213
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,
@@ -840,6 +841,7 @@ export class S3Client extends __Client<
840841
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
841842
super(_config_11);
842843
this.config = _config_11;
844+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
843845
this.middlewareStack.use(getUserAgentPlugin(this.config));
844846
this.middlewareStack.use(getRetryPlugin(this.config));
845847
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
@@ -180,17 +179,12 @@ export class AbortMultipartUploadCommand extends $Command
180179
Key: { type: "contextParams", name: "Key" },
181180
})
182181
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
183-
return [
184-
getSerdePlugin(config, this.serialize, this.deserialize),
185-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
186-
getThrow200ExceptionsPlugin(config),
187-
];
182+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
188183
})
189184
.s("AmazonS3", "AbortMultipartUpload", {})
190185
.n("S3Client", "AbortMultipartUploadCommand")
191186
.f(void 0, void 0)
192-
.ser(se_AbortMultipartUploadCommand)
193-
.de(de_AbortMultipartUploadCommand)
187+
.sc(AbortMultipartUpload)
194188
.build() {
195189
/** @internal type navigation helper, not in runtime. */
196190
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
@@ -287,7 +286,6 @@ export class CreateBucketCommand extends $Command
287286
})
288287
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
289288
return [
290-
getSerdePlugin(config, this.serialize, this.deserialize),
291289
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
292290
getThrow200ExceptionsPlugin(config),
293291
getLocationConstraintPlugin(config),
@@ -296,8 +294,7 @@ export class CreateBucketCommand extends $Command
296294
.s("AmazonS3", "CreateBucket", {})
297295
.n("S3Client", "CreateBucketCommand")
298296
.f(void 0, void 0)
299-
.ser(se_CreateBucketCommand)
300-
.de(de_CreateBucketCommand)
297+
.sc(CreateBucket)
301298
.build() {
302299
/** @internal type navigation helper, not in runtime. */
303300
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
@@ -140,7 +136,6 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
140136
})
141137
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
142138
return [
143-
getSerdePlugin(config, this.serialize, this.deserialize),
144139
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
145140
getFlexibleChecksumsPlugin(config, {
146141
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
@@ -151,8 +146,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
151146
.s("AmazonS3", "CreateBucketMetadataTableConfiguration", {})
152147
.n("S3Client", "CreateBucketMetadataTableConfigurationCommand")
153148
.f(void 0, void 0)
154-
.ser(se_CreateBucketMetadataTableConfigurationCommand)
155-
.de(de_CreateBucketMetadataTableConfigurationCommand)
149+
.sc(CreateBucketMetadataTableConfiguration)
156150
.build() {
157151
/** @internal type navigation helper, not in runtime. */
158152
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
@@ -202,17 +201,12 @@ export class CreateSessionCommand extends $Command
202201
Bucket: { type: "contextParams", name: "Bucket" },
203202
})
204203
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
205-
return [
206-
getSerdePlugin(config, this.serialize, this.deserialize),
207-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
208-
getThrow200ExceptionsPlugin(config),
209-
];
204+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
210205
})
211206
.s("AmazonS3", "CreateSession", {})
212207
.n("S3Client", "CreateSessionCommand")
213208
.f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog)
214-
.ser(se_CreateSessionCommand)
215-
.de(de_CreateSessionCommand)
209+
.sc(CreateSession)
216210
.build() {
217211
/** @internal type navigation helper, not in runtime. */
218212
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
@@ -104,16 +100,12 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command
104100
Bucket: { type: "contextParams", name: "Bucket" },
105101
})
106102
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
107-
return [
108-
getSerdePlugin(config, this.serialize, this.deserialize),
109-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
110-
];
103+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
111104
})
112105
.s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {})
113106
.n("S3Client", "DeleteBucketAnalyticsConfigurationCommand")
114107
.f(void 0, void 0)
115-
.ser(se_DeleteBucketAnalyticsConfigurationCommand)
116-
.de(de_DeleteBucketAnalyticsConfigurationCommand)
108+
.sc(DeleteBucketAnalyticsConfiguration)
117109
.build() {
118110
/** @internal type navigation helper, not in runtime. */
119111
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
@@ -138,16 +137,12 @@ export class DeleteBucketCommand extends $Command
138137
Bucket: { type: "contextParams", name: "Bucket" },
139138
})
140139
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
141-
return [
142-
getSerdePlugin(config, this.serialize, this.deserialize),
143-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
144-
];
140+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
145141
})
146142
.s("AmazonS3", "DeleteBucket", {})
147143
.n("S3Client", "DeleteBucketCommand")
148144
.f(void 0, void 0)
149-
.ser(se_DeleteBucketCommand)
150-
.de(de_DeleteBucketCommand)
145+
.sc(DeleteBucket)
151146
.build() {
152147
/** @internal type navigation helper, not in runtime. */
153148
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
@@ -104,16 +103,12 @@ export class DeleteBucketCorsCommand extends $Command
104103
Bucket: { type: "contextParams", name: "Bucket" },
105104
})
106105
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
107-
return [
108-
getSerdePlugin(config, this.serialize, this.deserialize),
109-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
110-
];
106+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
111107
})
112108
.s("AmazonS3", "DeleteBucketCors", {})
113109
.n("S3Client", "DeleteBucketCorsCommand")
114110
.f(void 0, void 0)
115-
.ser(se_DeleteBucketCorsCommand)
116-
.de(de_DeleteBucketCorsCommand)
111+
.sc(DeleteBucketCors)
117112
.build() {
118113
/** @internal type navigation helper, not in runtime. */
119114
protected declare static __types: {

0 commit comments

Comments
 (0)