Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(client-secrets-manager): schema testing #6898

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clients/client-s3/src/S3Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
getHttpAuthSchemeEndpointRuleSetPlugin,
getHttpSigningPlugin,
} from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import {
EventStreamSerdeInputConfig,
EventStreamSerdeResolvedConfig,
Expand Down Expand Up @@ -840,6 +841,7 @@ export class S3Client extends __Client<
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
super(_config_11);
this.config = _config_11;
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
Expand Down
12 changes: 3 additions & 9 deletions clients/client-s3/src/commands/AbortMultipartUploadCommand.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// smithy-typescript generated code
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -180,17 +179,12 @@ export class AbortMultipartUploadCommand extends $Command
Key: { type: "contextParams", name: "Key" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
})
.s("AmazonS3", "AbortMultipartUpload", {})
.n("S3Client", "AbortMultipartUploadCommand")
.f(void 0, void 0)
.ser(se_AbortMultipartUploadCommand)
.de(de_AbortMultipartUploadCommand)
.sc(AbortMultipartUpload)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -325,7 +324,6 @@ export class CompleteMultipartUploadCommand extends $Command
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
Expand All @@ -334,8 +332,7 @@ export class CompleteMultipartUploadCommand extends $Command
.s("AmazonS3", "CompleteMultipartUpload", {})
.n("S3Client", "CompleteMultipartUploadCommand")
.f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog)
.ser(se_CompleteMultipartUploadCommand)
.de(de_CompleteMultipartUploadCommand)
.sc(CompleteMultipartUpload)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
7 changes: 2 additions & 5 deletions clients/client-s3/src/commands/CopyObjectCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -370,7 +369,6 @@ export class CopyObjectCommand extends $Command
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
Expand All @@ -379,8 +377,7 @@ export class CopyObjectCommand extends $Command
.s("AmazonS3", "CopyObject", {})
.n("S3Client", "CopyObjectCommand")
.f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog)
.ser(se_CopyObjectCommand)
.de(de_CopyObjectCommand)
.sc(CopyObject)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
7 changes: 2 additions & 5 deletions clients/client-s3/src/commands/CreateBucketCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -287,7 +286,6 @@ export class CreateBucketCommand extends $Command
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getLocationConstraintPlugin(config),
Expand All @@ -296,8 +294,7 @@ export class CreateBucketCommand extends $Command
.s("AmazonS3", "CreateBucket", {})
.n("S3Client", "CreateBucketCommand")
.f(void 0, void 0)
.ser(se_CreateBucketCommand)
.de(de_CreateBucketCommand)
.sc(CreateBucket)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
// smithy-typescript generated code
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { CreateBucketMetadataTableConfigurationRequest } from "../models/models_0";
import {
de_CreateBucketMetadataTableConfigurationCommand,
se_CreateBucketMetadataTableConfigurationCommand,
} from "../protocols/Aws_restXml";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
import { CreateBucketMetadataTableConfiguration } from "../schemas/com.amazonaws.s3";

/**
* @public
Expand Down Expand Up @@ -140,7 +136,6 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" },
Expand All @@ -151,8 +146,7 @@ export class CreateBucketMetadataTableConfigurationCommand extends $Command
.s("AmazonS3", "CreateBucketMetadataTableConfiguration", {})
.n("S3Client", "CreateBucketMetadataTableConfigurationCommand")
.f(void 0, void 0)
.ser(se_CreateBucketMetadataTableConfigurationCommand)
.de(de_CreateBucketMetadataTableConfigurationCommand)
.sc(CreateBucketMetadataTableConfiguration)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -409,7 +408,6 @@ export class CreateMultipartUploadCommand extends $Command
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
Expand All @@ -418,8 +416,7 @@ export class CreateMultipartUploadCommand extends $Command
.s("AmazonS3", "CreateMultipartUpload", {})
.n("S3Client", "CreateMultipartUploadCommand")
.f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog)
.ser(se_CreateMultipartUploadCommand)
.de(de_CreateMultipartUploadCommand)
.sc(CreateMultipartUpload)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
12 changes: 3 additions & 9 deletions clients/client-s3/src/commands/CreateSessionCommand.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// smithy-typescript generated code
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -202,17 +201,12 @@ export class CreateSessionCommand extends $Command
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getThrow200ExceptionsPlugin(config)];
})
.s("AmazonS3", "CreateSession", {})
.n("S3Client", "CreateSessionCommand")
.f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog)
.ser(se_CreateSessionCommand)
.de(de_CreateSessionCommand)
.sc(CreateSession)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketAnalyticsConfigurationRequest } from "../models/models_0";
import {
de_DeleteBucketAnalyticsConfigurationCommand,
se_DeleteBucketAnalyticsConfigurationCommand,
} from "../protocols/Aws_restXml";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
import { DeleteBucketAnalyticsConfiguration } from "../schemas/com.amazonaws.s3";

/**
* @public
Expand Down Expand Up @@ -104,16 +100,12 @@ export class DeleteBucketAnalyticsConfigurationCommand extends $Command
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {})
.n("S3Client", "DeleteBucketAnalyticsConfigurationCommand")
.f(void 0, void 0)
.ser(se_DeleteBucketAnalyticsConfigurationCommand)
.de(de_DeleteBucketAnalyticsConfigurationCommand)
.sc(DeleteBucketAnalyticsConfiguration)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-s3/src/commands/DeleteBucketCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -138,16 +137,12 @@ export class DeleteBucketCommand extends $Command
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucket", {})
.n("S3Client", "DeleteBucketCommand")
.f(void 0, void 0)
.ser(se_DeleteBucketCommand)
.de(de_DeleteBucketCommand)
.sc(DeleteBucket)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
11 changes: 3 additions & 8 deletions clients/client-s3/src/commands/DeleteBucketCorsCommand.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

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

/**
* @public
Expand Down Expand Up @@ -104,16 +103,12 @@ export class DeleteBucketCorsCommand extends $Command
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketCors", {})
.n("S3Client", "DeleteBucketCorsCommand")
.f(void 0, void 0)
.ser(se_DeleteBucketCorsCommand)
.de(de_DeleteBucketCorsCommand)
.sc(DeleteBucketCors)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Loading
Loading