diff --git a/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts b/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts
index c4cf3ca91536a..0e9d573cfaae1 100644
--- a/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts
+++ b/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts
@@ -28,6 +28,7 @@ export class CreateAnalyzerCommand extends $Command<
CreateAnalyzerCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateAnalyzerCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts b/clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts
index 95c9acc5213fa..4880b643e7e18 100644
--- a/clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts
+++ b/clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts
@@ -29,6 +29,7 @@ export class CreateArchiveRuleCommand extends $Command<
CreateArchiveRuleCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateArchiveRuleCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/DeleteAnalyzerCommand.ts b/clients/client-accessanalyzer/commands/DeleteAnalyzerCommand.ts
index f7962e96f045e..a0e6670228fba 100644
--- a/clients/client-accessanalyzer/commands/DeleteAnalyzerCommand.ts
+++ b/clients/client-accessanalyzer/commands/DeleteAnalyzerCommand.ts
@@ -30,6 +30,7 @@ export class DeleteAnalyzerCommand extends $Command<
DeleteAnalyzerCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class DeleteAnalyzerCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/DeleteArchiveRuleCommand.ts b/clients/client-accessanalyzer/commands/DeleteArchiveRuleCommand.ts
index c8fb52a0cc755..6027599f85a38 100644
--- a/clients/client-accessanalyzer/commands/DeleteArchiveRuleCommand.ts
+++ b/clients/client-accessanalyzer/commands/DeleteArchiveRuleCommand.ts
@@ -28,6 +28,7 @@ export class DeleteArchiveRuleCommand extends $Command<
DeleteArchiveRuleCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteArchiveRuleCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/GetAnalyzedResourceCommand.ts b/clients/client-accessanalyzer/commands/GetAnalyzedResourceCommand.ts
index ff5a0206b04d4..26f5ad3b9bcef 100644
--- a/clients/client-accessanalyzer/commands/GetAnalyzedResourceCommand.ts
+++ b/clients/client-accessanalyzer/commands/GetAnalyzedResourceCommand.ts
@@ -28,6 +28,7 @@ export class GetAnalyzedResourceCommand extends $Command<
GetAnalyzedResourceCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetAnalyzedResourceCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts b/clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts
index 6df89f35a0408..7fb7bd5edbf75 100644
--- a/clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts
+++ b/clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts
@@ -28,6 +28,7 @@ export class GetAnalyzerCommand extends $Command<
GetAnalyzerCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetAnalyzerCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/GetArchiveRuleCommand.ts b/clients/client-accessanalyzer/commands/GetArchiveRuleCommand.ts
index 7f0e2c7b9c88e..8ed170f98d542 100644
--- a/clients/client-accessanalyzer/commands/GetArchiveRuleCommand.ts
+++ b/clients/client-accessanalyzer/commands/GetArchiveRuleCommand.ts
@@ -28,6 +28,7 @@ export class GetArchiveRuleCommand extends $Command<
GetArchiveRuleCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetArchiveRuleCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/GetFindingCommand.ts b/clients/client-accessanalyzer/commands/GetFindingCommand.ts
index 137da3b10fb0a..5cf77f21a82f1 100644
--- a/clients/client-accessanalyzer/commands/GetFindingCommand.ts
+++ b/clients/client-accessanalyzer/commands/GetFindingCommand.ts
@@ -28,6 +28,7 @@ export class GetFindingCommand extends $Command<
GetFindingCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetFindingCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/ListAnalyzedResourcesCommand.ts b/clients/client-accessanalyzer/commands/ListAnalyzedResourcesCommand.ts
index 217c10bf9c4eb..7399c44792e4b 100644
--- a/clients/client-accessanalyzer/commands/ListAnalyzedResourcesCommand.ts
+++ b/clients/client-accessanalyzer/commands/ListAnalyzedResourcesCommand.ts
@@ -29,6 +29,7 @@ export class ListAnalyzedResourcesCommand extends $Command<
ListAnalyzedResourcesCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class ListAnalyzedResourcesCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/ListAnalyzersCommand.ts b/clients/client-accessanalyzer/commands/ListAnalyzersCommand.ts
index 7492aeeb4eb13..3f3256ac45606 100644
--- a/clients/client-accessanalyzer/commands/ListAnalyzersCommand.ts
+++ b/clients/client-accessanalyzer/commands/ListAnalyzersCommand.ts
@@ -28,6 +28,7 @@ export class ListAnalyzersCommand extends $Command<
ListAnalyzersCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListAnalyzersCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/ListArchiveRulesCommand.ts b/clients/client-accessanalyzer/commands/ListArchiveRulesCommand.ts
index 8e00f57119269..111d65a1515b3 100644
--- a/clients/client-accessanalyzer/commands/ListArchiveRulesCommand.ts
+++ b/clients/client-accessanalyzer/commands/ListArchiveRulesCommand.ts
@@ -28,6 +28,7 @@ export class ListArchiveRulesCommand extends $Command<
ListArchiveRulesCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListArchiveRulesCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/ListFindingsCommand.ts b/clients/client-accessanalyzer/commands/ListFindingsCommand.ts
index 16458a951e1fe..601cb2b523b2b 100644
--- a/clients/client-accessanalyzer/commands/ListFindingsCommand.ts
+++ b/clients/client-accessanalyzer/commands/ListFindingsCommand.ts
@@ -28,6 +28,7 @@ export class ListFindingsCommand extends $Command<
ListFindingsCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListFindingsCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/ListTagsForResourceCommand.ts b/clients/client-accessanalyzer/commands/ListTagsForResourceCommand.ts
index d2cf319550184..e63be2f51e3c2 100644
--- a/clients/client-accessanalyzer/commands/ListTagsForResourceCommand.ts
+++ b/clients/client-accessanalyzer/commands/ListTagsForResourceCommand.ts
@@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command<
ListTagsForResourceCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/StartResourceScanCommand.ts b/clients/client-accessanalyzer/commands/StartResourceScanCommand.ts
index 3898570a2db5b..330fb86c93feb 100644
--- a/clients/client-accessanalyzer/commands/StartResourceScanCommand.ts
+++ b/clients/client-accessanalyzer/commands/StartResourceScanCommand.ts
@@ -28,6 +28,7 @@ export class StartResourceScanCommand extends $Command<
StartResourceScanCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class StartResourceScanCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/TagResourceCommand.ts b/clients/client-accessanalyzer/commands/TagResourceCommand.ts
index 2574b24af84c7..c13645dd0e36f 100644
--- a/clients/client-accessanalyzer/commands/TagResourceCommand.ts
+++ b/clients/client-accessanalyzer/commands/TagResourceCommand.ts
@@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command<
TagResourceCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/UntagResourceCommand.ts b/clients/client-accessanalyzer/commands/UntagResourceCommand.ts
index a24b783f606fe..d37c511892b81 100644
--- a/clients/client-accessanalyzer/commands/UntagResourceCommand.ts
+++ b/clients/client-accessanalyzer/commands/UntagResourceCommand.ts
@@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command<
UntagResourceCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/UpdateArchiveRuleCommand.ts b/clients/client-accessanalyzer/commands/UpdateArchiveRuleCommand.ts
index b42076113ebd6..07f61b753a8e9 100644
--- a/clients/client-accessanalyzer/commands/UpdateArchiveRuleCommand.ts
+++ b/clients/client-accessanalyzer/commands/UpdateArchiveRuleCommand.ts
@@ -28,6 +28,7 @@ export class UpdateArchiveRuleCommand extends $Command<
UpdateArchiveRuleCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateArchiveRuleCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-accessanalyzer/commands/UpdateFindingsCommand.ts b/clients/client-accessanalyzer/commands/UpdateFindingsCommand.ts
index 3622800d8d27b..a1b1d87f36bf1 100644
--- a/clients/client-accessanalyzer/commands/UpdateFindingsCommand.ts
+++ b/clients/client-accessanalyzer/commands/UpdateFindingsCommand.ts
@@ -28,6 +28,7 @@ export class UpdateFindingsCommand extends $Command<
UpdateFindingsCommandOutput,
AccessAnalyzerClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateFindingsCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/CreateCertificateAuthorityAuditReportCommand.ts b/clients/client-acm-pca/commands/CreateCertificateAuthorityAuditReportCommand.ts
index 0943a720b406e..064835a7d231f 100644
--- a/clients/client-acm-pca/commands/CreateCertificateAuthorityAuditReportCommand.ts
+++ b/clients/client-acm-pca/commands/CreateCertificateAuthorityAuditReportCommand.ts
@@ -47,6 +47,7 @@ export class CreateCertificateAuthorityAuditReportCommand extends $Command<
CreateCertificateAuthorityAuditReportCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -64,7 +65,10 @@ export class CreateCertificateAuthorityAuditReportCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/CreateCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/CreateCertificateAuthorityCommand.ts
index a894614174849..b07c08a0ec90a 100644
--- a/clients/client-acm-pca/commands/CreateCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/CreateCertificateAuthorityCommand.ts
@@ -46,6 +46,7 @@ export class CreateCertificateAuthorityCommand extends $Command<
CreateCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -63,7 +64,10 @@ export class CreateCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/CreatePermissionCommand.ts b/clients/client-acm-pca/commands/CreatePermissionCommand.ts
index 837fcac3b851d..0005319256235 100644
--- a/clients/client-acm-pca/commands/CreatePermissionCommand.ts
+++ b/clients/client-acm-pca/commands/CreatePermissionCommand.ts
@@ -54,6 +54,7 @@ export class CreatePermissionCommand extends $Command<
CreatePermissionCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -71,7 +72,10 @@ export class CreatePermissionCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/DeleteCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/DeleteCertificateAuthorityCommand.ts
index 2f5a3fb2fdc45..af410c139f034 100644
--- a/clients/client-acm-pca/commands/DeleteCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/DeleteCertificateAuthorityCommand.ts
@@ -47,6 +47,7 @@ export class DeleteCertificateAuthorityCommand extends $Command<
DeleteCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -64,7 +65,10 @@ export class DeleteCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/DeletePermissionCommand.ts b/clients/client-acm-pca/commands/DeletePermissionCommand.ts
index 5e1ca0761ccec..4ce1693fff88b 100644
--- a/clients/client-acm-pca/commands/DeletePermissionCommand.ts
+++ b/clients/client-acm-pca/commands/DeletePermissionCommand.ts
@@ -56,6 +56,7 @@ export class DeletePermissionCommand extends $Command<
DeletePermissionCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -73,7 +74,10 @@ export class DeletePermissionCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/DeletePolicyCommand.ts b/clients/client-acm-pca/commands/DeletePolicyCommand.ts
index acaa1a8961847..e870812973071 100644
--- a/clients/client-acm-pca/commands/DeletePolicyCommand.ts
+++ b/clients/client-acm-pca/commands/DeletePolicyCommand.ts
@@ -62,6 +62,7 @@ export class DeletePolicyCommand extends $Command<
DeletePolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -79,7 +80,10 @@ export class DeletePolicyCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/DescribeCertificateAuthorityAuditReportCommand.ts b/clients/client-acm-pca/commands/DescribeCertificateAuthorityAuditReportCommand.ts
index d07d2497d37e6..a72eeab10d5cf 100644
--- a/clients/client-acm-pca/commands/DescribeCertificateAuthorityAuditReportCommand.ts
+++ b/clients/client-acm-pca/commands/DescribeCertificateAuthorityAuditReportCommand.ts
@@ -35,6 +35,7 @@ export class DescribeCertificateAuthorityAuditReportCommand extends $Command<
DescribeCertificateAuthorityAuditReportCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -55,7 +56,10 @@ export class DescribeCertificateAuthorityAuditReportCommand extends $Command<
DescribeCertificateAuthorityAuditReportCommandInput,
DescribeCertificateAuthorityAuditReportCommandOutput
> {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/DescribeCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/DescribeCertificateAuthorityCommand.ts
index df2d7bc6f8c74..35b9816cf73b2 100644
--- a/clients/client-acm-pca/commands/DescribeCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/DescribeCertificateAuthorityCommand.ts
@@ -68,6 +68,7 @@ export class DescribeCertificateAuthorityCommand extends $Command<
DescribeCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -85,7 +86,10 @@ export class DescribeCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/GetCertificateAuthorityCertificateCommand.ts b/clients/client-acm-pca/commands/GetCertificateAuthorityCertificateCommand.ts
index e2c0c81774438..9b3707f2c6709 100644
--- a/clients/client-acm-pca/commands/GetCertificateAuthorityCertificateCommand.ts
+++ b/clients/client-acm-pca/commands/GetCertificateAuthorityCertificateCommand.ts
@@ -35,6 +35,7 @@ export class GetCertificateAuthorityCertificateCommand extends $Command<
GetCertificateAuthorityCertificateCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -52,7 +53,10 @@ export class GetCertificateAuthorityCertificateCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/GetCertificateAuthorityCsrCommand.ts b/clients/client-acm-pca/commands/GetCertificateAuthorityCsrCommand.ts
index 2af37292766b3..ae860b468d83a 100644
--- a/clients/client-acm-pca/commands/GetCertificateAuthorityCsrCommand.ts
+++ b/clients/client-acm-pca/commands/GetCertificateAuthorityCsrCommand.ts
@@ -32,6 +32,7 @@ export class GetCertificateAuthorityCsrCommand extends $Command<
GetCertificateAuthorityCsrCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -49,7 +50,10 @@ export class GetCertificateAuthorityCsrCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/GetCertificateCommand.ts b/clients/client-acm-pca/commands/GetCertificateCommand.ts
index b6a38e1ba1503..7b20c7cf00795 100644
--- a/clients/client-acm-pca/commands/GetCertificateCommand.ts
+++ b/clients/client-acm-pca/commands/GetCertificateCommand.ts
@@ -35,6 +35,7 @@ export class GetCertificateCommand extends $Command<
GetCertificateCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -52,7 +53,10 @@ export class GetCertificateCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/GetPolicyCommand.ts b/clients/client-acm-pca/commands/GetPolicyCommand.ts
index 2a39d71515471..b19060ea46de1 100644
--- a/clients/client-acm-pca/commands/GetPolicyCommand.ts
+++ b/clients/client-acm-pca/commands/GetPolicyCommand.ts
@@ -55,6 +55,7 @@ export class GetPolicyCommand extends $Command<
GetPolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -72,7 +73,10 @@ export class GetPolicyCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/ImportCertificateAuthorityCertificateCommand.ts b/clients/client-acm-pca/commands/ImportCertificateAuthorityCertificateCommand.ts
index 209607ea65214..9605d5a2aa2f1 100644
--- a/clients/client-acm-pca/commands/ImportCertificateAuthorityCertificateCommand.ts
+++ b/clients/client-acm-pca/commands/ImportCertificateAuthorityCertificateCommand.ts
@@ -142,6 +142,7 @@ export class ImportCertificateAuthorityCertificateCommand extends $Command<
ImportCertificateAuthorityCertificateCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -159,7 +160,10 @@ export class ImportCertificateAuthorityCertificateCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/IssueCertificateCommand.ts b/clients/client-acm-pca/commands/IssueCertificateCommand.ts
index 75131c8d05a21..58791e958d3ee 100644
--- a/clients/client-acm-pca/commands/IssueCertificateCommand.ts
+++ b/clients/client-acm-pca/commands/IssueCertificateCommand.ts
@@ -36,6 +36,7 @@ export class IssueCertificateCommand extends $Command<
IssueCertificateCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -53,7 +54,10 @@ export class IssueCertificateCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/ListCertificateAuthoritiesCommand.ts b/clients/client-acm-pca/commands/ListCertificateAuthoritiesCommand.ts
index d62ea457a36b4..bbd995cd76532 100644
--- a/clients/client-acm-pca/commands/ListCertificateAuthoritiesCommand.ts
+++ b/clients/client-acm-pca/commands/ListCertificateAuthoritiesCommand.ts
@@ -28,6 +28,7 @@ export class ListCertificateAuthoritiesCommand extends $Command<
ListCertificateAuthoritiesCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListCertificateAuthoritiesCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/ListPermissionsCommand.ts b/clients/client-acm-pca/commands/ListPermissionsCommand.ts
index 55fb4f6cfce75..7b463b9ff9eb2 100644
--- a/clients/client-acm-pca/commands/ListPermissionsCommand.ts
+++ b/clients/client-acm-pca/commands/ListPermissionsCommand.ts
@@ -55,6 +55,7 @@ export class ListPermissionsCommand extends $Command<
ListPermissionsCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -72,7 +73,10 @@ export class ListPermissionsCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/ListTagsCommand.ts b/clients/client-acm-pca/commands/ListTagsCommand.ts
index 058952c9f8300..bac9599b6c89f 100644
--- a/clients/client-acm-pca/commands/ListTagsCommand.ts
+++ b/clients/client-acm-pca/commands/ListTagsCommand.ts
@@ -24,6 +24,7 @@ export type ListTagsCommandOutput = ListTagsResponse & __MetadataBearer;
* action to add one or more tags to your CA. Call the UntagCertificateAuthority action to remove tags.
*/
export class ListTagsCommand extends $Command {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -41,7 +42,10 @@ export class ListTagsCommand extends $Command {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/PutPolicyCommand.ts b/clients/client-acm-pca/commands/PutPolicyCommand.ts
index f66915d0e1161..3321c6b794933 100644
--- a/clients/client-acm-pca/commands/PutPolicyCommand.ts
+++ b/clients/client-acm-pca/commands/PutPolicyCommand.ts
@@ -56,6 +56,7 @@ export class PutPolicyCommand extends $Command<
PutPolicyCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -73,7 +74,10 @@ export class PutPolicyCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/RestoreCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/RestoreCertificateAuthorityCommand.ts
index 5dfed12faf881..c82d47f645da6 100644
--- a/clients/client-acm-pca/commands/RestoreCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/RestoreCertificateAuthorityCommand.ts
@@ -38,6 +38,7 @@ export class RestoreCertificateAuthorityCommand extends $Command<
RestoreCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -55,7 +56,10 @@ export class RestoreCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/RevokeCertificateCommand.ts b/clients/client-acm-pca/commands/RevokeCertificateCommand.ts
index 7ee626a1ed439..5bdd5ede7b1c8 100644
--- a/clients/client-acm-pca/commands/RevokeCertificateCommand.ts
+++ b/clients/client-acm-pca/commands/RevokeCertificateCommand.ts
@@ -47,6 +47,7 @@ export class RevokeCertificateCommand extends $Command<
RevokeCertificateCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -64,7 +65,10 @@ export class RevokeCertificateCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/TagCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/TagCertificateAuthorityCommand.ts
index 50ab521ef697f..97281b21d999f 100644
--- a/clients/client-acm-pca/commands/TagCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/TagCertificateAuthorityCommand.ts
@@ -35,6 +35,7 @@ export class TagCertificateAuthorityCommand extends $Command<
TagCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -52,7 +53,10 @@ export class TagCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/UntagCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/UntagCertificateAuthorityCommand.ts
index f9afb1353c3c9..7d6dd1db02e52 100644
--- a/clients/client-acm-pca/commands/UntagCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/UntagCertificateAuthorityCommand.ts
@@ -32,6 +32,7 @@ export class UntagCertificateAuthorityCommand extends $Command<
UntagCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -49,7 +50,10 @@ export class UntagCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm-pca/commands/UpdateCertificateAuthorityCommand.ts b/clients/client-acm-pca/commands/UpdateCertificateAuthorityCommand.ts
index 78e8d9670bfbf..e07d9e5056067 100644
--- a/clients/client-acm-pca/commands/UpdateCertificateAuthorityCommand.ts
+++ b/clients/client-acm-pca/commands/UpdateCertificateAuthorityCommand.ts
@@ -38,6 +38,7 @@ export class UpdateCertificateAuthorityCommand extends $Command<
UpdateCertificateAuthorityCommandOutput,
ACMPCAClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -55,7 +56,10 @@ export class UpdateCertificateAuthorityCommand extends $Command<
configuration: ACMPCAClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/AddTagsToCertificateCommand.ts b/clients/client-acm/commands/AddTagsToCertificateCommand.ts
index e40ab7316cc8d..f659394ab89fa 100644
--- a/clients/client-acm/commands/AddTagsToCertificateCommand.ts
+++ b/clients/client-acm/commands/AddTagsToCertificateCommand.ts
@@ -43,6 +43,7 @@ export class AddTagsToCertificateCommand extends $Command<
AddTagsToCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -60,7 +61,10 @@ export class AddTagsToCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/DeleteCertificateCommand.ts b/clients/client-acm/commands/DeleteCertificateCommand.ts
index 35c39075d3019..83be8a3824e47 100644
--- a/clients/client-acm/commands/DeleteCertificateCommand.ts
+++ b/clients/client-acm/commands/DeleteCertificateCommand.ts
@@ -35,6 +35,7 @@ export class DeleteCertificateCommand extends $Command<
DeleteCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -52,7 +53,10 @@ export class DeleteCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/DescribeCertificateCommand.ts b/clients/client-acm/commands/DescribeCertificateCommand.ts
index 9209ed603f63b..a58d43d6d3470 100644
--- a/clients/client-acm/commands/DescribeCertificateCommand.ts
+++ b/clients/client-acm/commands/DescribeCertificateCommand.ts
@@ -28,6 +28,7 @@ export class DescribeCertificateCommand extends $Command<
DescribeCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DescribeCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/ExportCertificateCommand.ts b/clients/client-acm/commands/ExportCertificateCommand.ts
index 905d60e8bd2c3..d9754314b08ac 100644
--- a/clients/client-acm/commands/ExportCertificateCommand.ts
+++ b/clients/client-acm/commands/ExportCertificateCommand.ts
@@ -34,6 +34,7 @@ export class ExportCertificateCommand extends $Command<
ExportCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -51,7 +52,10 @@ export class ExportCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/GetCertificateCommand.ts b/clients/client-acm/commands/GetCertificateCommand.ts
index 78169092af9f6..06ce4133110dc 100644
--- a/clients/client-acm/commands/GetCertificateCommand.ts
+++ b/clients/client-acm/commands/GetCertificateCommand.ts
@@ -31,6 +31,7 @@ export class GetCertificateCommand extends $Command<
GetCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -48,7 +49,10 @@ export class GetCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/ImportCertificateCommand.ts b/clients/client-acm/commands/ImportCertificateCommand.ts
index cd004d535ba16..31b11962cb325 100644
--- a/clients/client-acm/commands/ImportCertificateCommand.ts
+++ b/clients/client-acm/commands/ImportCertificateCommand.ts
@@ -96,6 +96,7 @@ export class ImportCertificateCommand extends $Command<
ImportCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -113,7 +114,10 @@ export class ImportCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/ListCertificatesCommand.ts b/clients/client-acm/commands/ListCertificatesCommand.ts
index 3c6e5c05d2743..4ad792ea9b2f2 100644
--- a/clients/client-acm/commands/ListCertificatesCommand.ts
+++ b/clients/client-acm/commands/ListCertificatesCommand.ts
@@ -31,6 +31,7 @@ export class ListCertificatesCommand extends $Command<
ListCertificatesCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -48,7 +49,10 @@ export class ListCertificatesCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/ListTagsForCertificateCommand.ts b/clients/client-acm/commands/ListTagsForCertificateCommand.ts
index 0736c702ed4eb..4d4bbd9ed35bc 100644
--- a/clients/client-acm/commands/ListTagsForCertificateCommand.ts
+++ b/clients/client-acm/commands/ListTagsForCertificateCommand.ts
@@ -30,6 +30,7 @@ export class ListTagsForCertificateCommand extends $Command<
ListTagsForCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class ListTagsForCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/RemoveTagsFromCertificateCommand.ts b/clients/client-acm/commands/RemoveTagsFromCertificateCommand.ts
index 3d30560437756..90dceef7e98b5 100644
--- a/clients/client-acm/commands/RemoveTagsFromCertificateCommand.ts
+++ b/clients/client-acm/commands/RemoveTagsFromCertificateCommand.ts
@@ -34,6 +34,7 @@ export class RemoveTagsFromCertificateCommand extends $Command<
RemoveTagsFromCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -51,7 +52,10 @@ export class RemoveTagsFromCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/RenewCertificateCommand.ts b/clients/client-acm/commands/RenewCertificateCommand.ts
index 45c4617c37a0d..80fa0cb328173 100644
--- a/clients/client-acm/commands/RenewCertificateCommand.ts
+++ b/clients/client-acm/commands/RenewCertificateCommand.ts
@@ -32,6 +32,7 @@ export class RenewCertificateCommand extends $Command<
RenewCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -49,7 +50,10 @@ export class RenewCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/RequestCertificateCommand.ts b/clients/client-acm/commands/RequestCertificateCommand.ts
index 5dfb1bacbe756..4c10ec002ed7e 100644
--- a/clients/client-acm/commands/RequestCertificateCommand.ts
+++ b/clients/client-acm/commands/RequestCertificateCommand.ts
@@ -37,6 +37,7 @@ export class RequestCertificateCommand extends $Command<
RequestCertificateCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -54,7 +55,10 @@ export class RequestCertificateCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/ResendValidationEmailCommand.ts b/clients/client-acm/commands/ResendValidationEmailCommand.ts
index f9e324c99f1b2..f012146e0316d 100644
--- a/clients/client-acm/commands/ResendValidationEmailCommand.ts
+++ b/clients/client-acm/commands/ResendValidationEmailCommand.ts
@@ -36,6 +36,7 @@ export class ResendValidationEmailCommand extends $Command<
ResendValidationEmailCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -53,7 +54,10 @@ export class ResendValidationEmailCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-acm/commands/UpdateCertificateOptionsCommand.ts b/clients/client-acm/commands/UpdateCertificateOptionsCommand.ts
index cd01eda9978ae..1839a9eefe91a 100644
--- a/clients/client-acm/commands/UpdateCertificateOptionsCommand.ts
+++ b/clients/client-acm/commands/UpdateCertificateOptionsCommand.ts
@@ -31,6 +31,7 @@ export class UpdateCertificateOptionsCommand extends $Command<
UpdateCertificateOptionsCommandOutput,
ACMClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -48,7 +49,10 @@ export class UpdateCertificateOptionsCommand extends $Command<
configuration: ACMClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ApproveSkillCommand.ts b/clients/client-alexa-for-business/commands/ApproveSkillCommand.ts
index a1f785ec88726..3ea537129add4 100644
--- a/clients/client-alexa-for-business/commands/ApproveSkillCommand.ts
+++ b/clients/client-alexa-for-business/commands/ApproveSkillCommand.ts
@@ -29,6 +29,7 @@ export class ApproveSkillCommand extends $Command<
ApproveSkillCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class ApproveSkillCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateContactWithAddressBookCommand.ts b/clients/client-alexa-for-business/commands/AssociateContactWithAddressBookCommand.ts
index 5302dabd5828b..9a7e6bb2474ee 100644
--- a/clients/client-alexa-for-business/commands/AssociateContactWithAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateContactWithAddressBookCommand.ts
@@ -28,6 +28,7 @@ export class AssociateContactWithAddressBookCommand extends $Command<
AssociateContactWithAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class AssociateContactWithAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateDeviceWithNetworkProfileCommand.ts b/clients/client-alexa-for-business/commands/AssociateDeviceWithNetworkProfileCommand.ts
index 0120c1c77ec05..2f8ef51cf8871 100644
--- a/clients/client-alexa-for-business/commands/AssociateDeviceWithNetworkProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateDeviceWithNetworkProfileCommand.ts
@@ -32,6 +32,7 @@ export class AssociateDeviceWithNetworkProfileCommand extends $Command<
AssociateDeviceWithNetworkProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -49,7 +50,10 @@ export class AssociateDeviceWithNetworkProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateDeviceWithRoomCommand.ts b/clients/client-alexa-for-business/commands/AssociateDeviceWithRoomCommand.ts
index 8ceb0375472da..feef963a2b791 100644
--- a/clients/client-alexa-for-business/commands/AssociateDeviceWithRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateDeviceWithRoomCommand.ts
@@ -30,6 +30,7 @@ export class AssociateDeviceWithRoomCommand extends $Command<
AssociateDeviceWithRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class AssociateDeviceWithRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateSkillGroupWithRoomCommand.ts b/clients/client-alexa-for-business/commands/AssociateSkillGroupWithRoomCommand.ts
index 301d2d753a216..ed81465a0e868 100644
--- a/clients/client-alexa-for-business/commands/AssociateSkillGroupWithRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateSkillGroupWithRoomCommand.ts
@@ -29,6 +29,7 @@ export class AssociateSkillGroupWithRoomCommand extends $Command<
AssociateSkillGroupWithRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class AssociateSkillGroupWithRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateSkillWithSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/AssociateSkillWithSkillGroupCommand.ts
index 03aa7c1b94a55..313d10c98715d 100644
--- a/clients/client-alexa-for-business/commands/AssociateSkillWithSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateSkillWithSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class AssociateSkillWithSkillGroupCommand extends $Command<
AssociateSkillWithSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class AssociateSkillWithSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/AssociateSkillWithUsersCommand.ts b/clients/client-alexa-for-business/commands/AssociateSkillWithUsersCommand.ts
index 68fffe4bb91c3..895faa0315836 100644
--- a/clients/client-alexa-for-business/commands/AssociateSkillWithUsersCommand.ts
+++ b/clients/client-alexa-for-business/commands/AssociateSkillWithUsersCommand.ts
@@ -28,6 +28,7 @@ export class AssociateSkillWithUsersCommand extends $Command<
AssociateSkillWithUsersCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class AssociateSkillWithUsersCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateAddressBookCommand.ts b/clients/client-alexa-for-business/commands/CreateAddressBookCommand.ts
index cca31dfbeb665..5a4f8594e6098 100644
--- a/clients/client-alexa-for-business/commands/CreateAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateAddressBookCommand.ts
@@ -28,6 +28,7 @@ export class CreateAddressBookCommand extends $Command<
CreateAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateBusinessReportScheduleCommand.ts b/clients/client-alexa-for-business/commands/CreateBusinessReportScheduleCommand.ts
index e29369f3c35ae..51a9d89adee2f 100644
--- a/clients/client-alexa-for-business/commands/CreateBusinessReportScheduleCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateBusinessReportScheduleCommand.ts
@@ -29,6 +29,7 @@ export class CreateBusinessReportScheduleCommand extends $Command<
CreateBusinessReportScheduleCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateBusinessReportScheduleCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateConferenceProviderCommand.ts b/clients/client-alexa-for-business/commands/CreateConferenceProviderCommand.ts
index 672abf71e59b5..7c248277c6a00 100644
--- a/clients/client-alexa-for-business/commands/CreateConferenceProviderCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateConferenceProviderCommand.ts
@@ -28,6 +28,7 @@ export class CreateConferenceProviderCommand extends $Command<
CreateConferenceProviderCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateConferenceProviderCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateContactCommand.ts b/clients/client-alexa-for-business/commands/CreateContactCommand.ts
index 4a3b27fbb4520..efabec2cb5e87 100644
--- a/clients/client-alexa-for-business/commands/CreateContactCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateContactCommand.ts
@@ -28,6 +28,7 @@ export class CreateContactCommand extends $Command<
CreateContactCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateContactCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateGatewayGroupCommand.ts b/clients/client-alexa-for-business/commands/CreateGatewayGroupCommand.ts
index f7437c87b03b7..232ae9bf16d33 100644
--- a/clients/client-alexa-for-business/commands/CreateGatewayGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateGatewayGroupCommand.ts
@@ -28,6 +28,7 @@ export class CreateGatewayGroupCommand extends $Command<
CreateGatewayGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateGatewayGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateNetworkProfileCommand.ts b/clients/client-alexa-for-business/commands/CreateNetworkProfileCommand.ts
index af5d326f2a984..b688c013b9a2a 100644
--- a/clients/client-alexa-for-business/commands/CreateNetworkProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateNetworkProfileCommand.ts
@@ -28,6 +28,7 @@ export class CreateNetworkProfileCommand extends $Command<
CreateNetworkProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateNetworkProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateProfileCommand.ts b/clients/client-alexa-for-business/commands/CreateProfileCommand.ts
index 8974d1524e8a3..5fa15e809b547 100644
--- a/clients/client-alexa-for-business/commands/CreateProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateProfileCommand.ts
@@ -28,6 +28,7 @@ export class CreateProfileCommand extends $Command<
CreateProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateRoomCommand.ts b/clients/client-alexa-for-business/commands/CreateRoomCommand.ts
index f8abb8ef16e6b..f25b1accd6732 100644
--- a/clients/client-alexa-for-business/commands/CreateRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateRoomCommand.ts
@@ -28,6 +28,7 @@ export class CreateRoomCommand extends $Command<
CreateRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/CreateSkillGroupCommand.ts
index 9fd069429b056..4b7a49aff5db2 100644
--- a/clients/client-alexa-for-business/commands/CreateSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class CreateSkillGroupCommand extends $Command<
CreateSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/CreateUserCommand.ts b/clients/client-alexa-for-business/commands/CreateUserCommand.ts
index e5af186d23b99..1afadf64890cf 100644
--- a/clients/client-alexa-for-business/commands/CreateUserCommand.ts
+++ b/clients/client-alexa-for-business/commands/CreateUserCommand.ts
@@ -28,6 +28,7 @@ export class CreateUserCommand extends $Command<
CreateUserCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateUserCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteAddressBookCommand.ts b/clients/client-alexa-for-business/commands/DeleteAddressBookCommand.ts
index f0d93424f2a91..d0cdda44f2057 100644
--- a/clients/client-alexa-for-business/commands/DeleteAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteAddressBookCommand.ts
@@ -28,6 +28,7 @@ export class DeleteAddressBookCommand extends $Command<
DeleteAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteBusinessReportScheduleCommand.ts b/clients/client-alexa-for-business/commands/DeleteBusinessReportScheduleCommand.ts
index 564b87a21bb84..184850e7f99c1 100644
--- a/clients/client-alexa-for-business/commands/DeleteBusinessReportScheduleCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteBusinessReportScheduleCommand.ts
@@ -29,6 +29,7 @@ export class DeleteBusinessReportScheduleCommand extends $Command<
DeleteBusinessReportScheduleCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class DeleteBusinessReportScheduleCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteConferenceProviderCommand.ts b/clients/client-alexa-for-business/commands/DeleteConferenceProviderCommand.ts
index 080b506221002..03f5c4f84d78a 100644
--- a/clients/client-alexa-for-business/commands/DeleteConferenceProviderCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteConferenceProviderCommand.ts
@@ -28,6 +28,7 @@ export class DeleteConferenceProviderCommand extends $Command<
DeleteConferenceProviderCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteConferenceProviderCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteContactCommand.ts b/clients/client-alexa-for-business/commands/DeleteContactCommand.ts
index 8ed7d6de95d3c..8a8b26ca2db0b 100644
--- a/clients/client-alexa-for-business/commands/DeleteContactCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteContactCommand.ts
@@ -28,6 +28,7 @@ export class DeleteContactCommand extends $Command<
DeleteContactCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteContactCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteDeviceCommand.ts b/clients/client-alexa-for-business/commands/DeleteDeviceCommand.ts
index 60f5b13599534..d31ecd3a2249f 100644
--- a/clients/client-alexa-for-business/commands/DeleteDeviceCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteDeviceCommand.ts
@@ -28,6 +28,7 @@ export class DeleteDeviceCommand extends $Command<
DeleteDeviceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteDeviceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteDeviceUsageDataCommand.ts b/clients/client-alexa-for-business/commands/DeleteDeviceUsageDataCommand.ts
index b33b65d094149..7a6f97942ae62 100644
--- a/clients/client-alexa-for-business/commands/DeleteDeviceUsageDataCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteDeviceUsageDataCommand.ts
@@ -30,6 +30,7 @@ export class DeleteDeviceUsageDataCommand extends $Command<
DeleteDeviceUsageDataCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class DeleteDeviceUsageDataCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteGatewayGroupCommand.ts b/clients/client-alexa-for-business/commands/DeleteGatewayGroupCommand.ts
index 3f8983aeda5f9..64fcaed2005a3 100644
--- a/clients/client-alexa-for-business/commands/DeleteGatewayGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteGatewayGroupCommand.ts
@@ -28,6 +28,7 @@ export class DeleteGatewayGroupCommand extends $Command<
DeleteGatewayGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteGatewayGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteNetworkProfileCommand.ts b/clients/client-alexa-for-business/commands/DeleteNetworkProfileCommand.ts
index 48830d6fa93d6..9216e320811a7 100644
--- a/clients/client-alexa-for-business/commands/DeleteNetworkProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteNetworkProfileCommand.ts
@@ -28,6 +28,7 @@ export class DeleteNetworkProfileCommand extends $Command<
DeleteNetworkProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteNetworkProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteProfileCommand.ts b/clients/client-alexa-for-business/commands/DeleteProfileCommand.ts
index ccc2287eef0d1..37e1fde0a476b 100644
--- a/clients/client-alexa-for-business/commands/DeleteProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteProfileCommand.ts
@@ -28,6 +28,7 @@ export class DeleteProfileCommand extends $Command<
DeleteProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteRoomCommand.ts b/clients/client-alexa-for-business/commands/DeleteRoomCommand.ts
index d7d294e64b94e..ec89681c3fca7 100644
--- a/clients/client-alexa-for-business/commands/DeleteRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteRoomCommand.ts
@@ -28,6 +28,7 @@ export class DeleteRoomCommand extends $Command<
DeleteRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteRoomSkillParameterCommand.ts b/clients/client-alexa-for-business/commands/DeleteRoomSkillParameterCommand.ts
index 58cf05115ebfb..79f6fe45da176 100644
--- a/clients/client-alexa-for-business/commands/DeleteRoomSkillParameterCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteRoomSkillParameterCommand.ts
@@ -28,6 +28,7 @@ export class DeleteRoomSkillParameterCommand extends $Command<
DeleteRoomSkillParameterCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteRoomSkillParameterCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteSkillAuthorizationCommand.ts b/clients/client-alexa-for-business/commands/DeleteSkillAuthorizationCommand.ts
index 78c7cbeb3b205..ea9e9de83cd31 100644
--- a/clients/client-alexa-for-business/commands/DeleteSkillAuthorizationCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteSkillAuthorizationCommand.ts
@@ -28,6 +28,7 @@ export class DeleteSkillAuthorizationCommand extends $Command<
DeleteSkillAuthorizationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteSkillAuthorizationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/DeleteSkillGroupCommand.ts
index 1fda377c7d97d..c2e15e5ce8a83 100644
--- a/clients/client-alexa-for-business/commands/DeleteSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class DeleteSkillGroupCommand extends $Command<
DeleteSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DeleteUserCommand.ts b/clients/client-alexa-for-business/commands/DeleteUserCommand.ts
index f8cc8235ba883..f4f86a5e2bcba 100644
--- a/clients/client-alexa-for-business/commands/DeleteUserCommand.ts
+++ b/clients/client-alexa-for-business/commands/DeleteUserCommand.ts
@@ -28,6 +28,7 @@ export class DeleteUserCommand extends $Command<
DeleteUserCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteUserCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DisassociateContactFromAddressBookCommand.ts b/clients/client-alexa-for-business/commands/DisassociateContactFromAddressBookCommand.ts
index ea52d1469a7cf..2c10da5b3df9f 100644
--- a/clients/client-alexa-for-business/commands/DisassociateContactFromAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/DisassociateContactFromAddressBookCommand.ts
@@ -32,6 +32,7 @@ export class DisassociateContactFromAddressBookCommand extends $Command<
DisassociateContactFromAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -49,7 +50,10 @@ export class DisassociateContactFromAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DisassociateDeviceFromRoomCommand.ts b/clients/client-alexa-for-business/commands/DisassociateDeviceFromRoomCommand.ts
index be4f8bedf4b78..ded7cbb2a7c51 100644
--- a/clients/client-alexa-for-business/commands/DisassociateDeviceFromRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/DisassociateDeviceFromRoomCommand.ts
@@ -30,6 +30,7 @@ export class DisassociateDeviceFromRoomCommand extends $Command<
DisassociateDeviceFromRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class DisassociateDeviceFromRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DisassociateSkillFromSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/DisassociateSkillFromSkillGroupCommand.ts
index f04467b5676ee..ef91198fbecf7 100644
--- a/clients/client-alexa-for-business/commands/DisassociateSkillFromSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/DisassociateSkillFromSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class DisassociateSkillFromSkillGroupCommand extends $Command<
DisassociateSkillFromSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DisassociateSkillFromSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DisassociateSkillFromUsersCommand.ts b/clients/client-alexa-for-business/commands/DisassociateSkillFromUsersCommand.ts
index cd5c4904f4c28..d19f2c726b5bd 100644
--- a/clients/client-alexa-for-business/commands/DisassociateSkillFromUsersCommand.ts
+++ b/clients/client-alexa-for-business/commands/DisassociateSkillFromUsersCommand.ts
@@ -29,6 +29,7 @@ export class DisassociateSkillFromUsersCommand extends $Command<
DisassociateSkillFromUsersCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class DisassociateSkillFromUsersCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/DisassociateSkillGroupFromRoomCommand.ts b/clients/client-alexa-for-business/commands/DisassociateSkillGroupFromRoomCommand.ts
index 2a2d1d328a5b2..06f4160ecd450 100644
--- a/clients/client-alexa-for-business/commands/DisassociateSkillGroupFromRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/DisassociateSkillGroupFromRoomCommand.ts
@@ -29,6 +29,7 @@ export class DisassociateSkillGroupFromRoomCommand extends $Command<
DisassociateSkillGroupFromRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class DisassociateSkillGroupFromRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ForgetSmartHomeAppliancesCommand.ts b/clients/client-alexa-for-business/commands/ForgetSmartHomeAppliancesCommand.ts
index f52344eaa70c5..09aac3ed58687 100644
--- a/clients/client-alexa-for-business/commands/ForgetSmartHomeAppliancesCommand.ts
+++ b/clients/client-alexa-for-business/commands/ForgetSmartHomeAppliancesCommand.ts
@@ -28,6 +28,7 @@ export class ForgetSmartHomeAppliancesCommand extends $Command<
ForgetSmartHomeAppliancesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ForgetSmartHomeAppliancesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetAddressBookCommand.ts b/clients/client-alexa-for-business/commands/GetAddressBookCommand.ts
index a42eb3810e6aa..efba86e5870de 100644
--- a/clients/client-alexa-for-business/commands/GetAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetAddressBookCommand.ts
@@ -28,6 +28,7 @@ export class GetAddressBookCommand extends $Command<
GetAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetConferencePreferenceCommand.ts b/clients/client-alexa-for-business/commands/GetConferencePreferenceCommand.ts
index b9f0b6a405931..2d5cb692d58f3 100644
--- a/clients/client-alexa-for-business/commands/GetConferencePreferenceCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetConferencePreferenceCommand.ts
@@ -28,6 +28,7 @@ export class GetConferencePreferenceCommand extends $Command<
GetConferencePreferenceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetConferencePreferenceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetConferenceProviderCommand.ts b/clients/client-alexa-for-business/commands/GetConferenceProviderCommand.ts
index 19fb90211c7ac..ff2d40dbd66f4 100644
--- a/clients/client-alexa-for-business/commands/GetConferenceProviderCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetConferenceProviderCommand.ts
@@ -28,6 +28,7 @@ export class GetConferenceProviderCommand extends $Command<
GetConferenceProviderCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetConferenceProviderCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetContactCommand.ts b/clients/client-alexa-for-business/commands/GetContactCommand.ts
index 08144c4e34c5d..ee612277a6357 100644
--- a/clients/client-alexa-for-business/commands/GetContactCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetContactCommand.ts
@@ -28,6 +28,7 @@ export class GetContactCommand extends $Command<
GetContactCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetContactCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetDeviceCommand.ts b/clients/client-alexa-for-business/commands/GetDeviceCommand.ts
index 9dcd65b2363ef..8241ab85e81ea 100644
--- a/clients/client-alexa-for-business/commands/GetDeviceCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetDeviceCommand.ts
@@ -25,6 +25,7 @@ export class GetDeviceCommand extends $Command<
GetDeviceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetDeviceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetGatewayCommand.ts b/clients/client-alexa-for-business/commands/GetGatewayCommand.ts
index 0fd3fa0616c3d..9eba600e41d15 100644
--- a/clients/client-alexa-for-business/commands/GetGatewayCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetGatewayCommand.ts
@@ -28,6 +28,7 @@ export class GetGatewayCommand extends $Command<
GetGatewayCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetGatewayCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetGatewayGroupCommand.ts b/clients/client-alexa-for-business/commands/GetGatewayGroupCommand.ts
index 24972b55c9e5b..1cbbea57ca08e 100644
--- a/clients/client-alexa-for-business/commands/GetGatewayGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetGatewayGroupCommand.ts
@@ -28,6 +28,7 @@ export class GetGatewayGroupCommand extends $Command<
GetGatewayGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetGatewayGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetInvitationConfigurationCommand.ts b/clients/client-alexa-for-business/commands/GetInvitationConfigurationCommand.ts
index 54166ad406e31..2db7e294333d9 100644
--- a/clients/client-alexa-for-business/commands/GetInvitationConfigurationCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetInvitationConfigurationCommand.ts
@@ -29,6 +29,7 @@ export class GetInvitationConfigurationCommand extends $Command<
GetInvitationConfigurationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class GetInvitationConfigurationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetNetworkProfileCommand.ts b/clients/client-alexa-for-business/commands/GetNetworkProfileCommand.ts
index 5d407427f8a18..dbed69814c170 100644
--- a/clients/client-alexa-for-business/commands/GetNetworkProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetNetworkProfileCommand.ts
@@ -28,6 +28,7 @@ export class GetNetworkProfileCommand extends $Command<
GetNetworkProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetNetworkProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetProfileCommand.ts b/clients/client-alexa-for-business/commands/GetProfileCommand.ts
index 42620a3b77fdb..7621ace9b7cb9 100644
--- a/clients/client-alexa-for-business/commands/GetProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetProfileCommand.ts
@@ -28,6 +28,7 @@ export class GetProfileCommand extends $Command<
GetProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetRoomCommand.ts b/clients/client-alexa-for-business/commands/GetRoomCommand.ts
index 8c2477c8cd94b..bc39fa0728fb7 100644
--- a/clients/client-alexa-for-business/commands/GetRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetRoomCommand.ts
@@ -25,6 +25,7 @@ export class GetRoomCommand extends $Command<
GetRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetRoomSkillParameterCommand.ts b/clients/client-alexa-for-business/commands/GetRoomSkillParameterCommand.ts
index f6a7773db9843..23dc16b550784 100644
--- a/clients/client-alexa-for-business/commands/GetRoomSkillParameterCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetRoomSkillParameterCommand.ts
@@ -28,6 +28,7 @@ export class GetRoomSkillParameterCommand extends $Command<
GetRoomSkillParameterCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetRoomSkillParameterCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/GetSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/GetSkillGroupCommand.ts
index 3011a2dcdf6b8..d6c5f42adef02 100644
--- a/clients/client-alexa-for-business/commands/GetSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/GetSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class GetSkillGroupCommand extends $Command<
GetSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListBusinessReportSchedulesCommand.ts b/clients/client-alexa-for-business/commands/ListBusinessReportSchedulesCommand.ts
index 8d7920bb4229f..4bf10bbd50475 100644
--- a/clients/client-alexa-for-business/commands/ListBusinessReportSchedulesCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListBusinessReportSchedulesCommand.ts
@@ -28,6 +28,7 @@ export class ListBusinessReportSchedulesCommand extends $Command<
ListBusinessReportSchedulesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListBusinessReportSchedulesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListConferenceProvidersCommand.ts b/clients/client-alexa-for-business/commands/ListConferenceProvidersCommand.ts
index cd3d61e823eea..f9ded17f121d3 100644
--- a/clients/client-alexa-for-business/commands/ListConferenceProvidersCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListConferenceProvidersCommand.ts
@@ -28,6 +28,7 @@ export class ListConferenceProvidersCommand extends $Command<
ListConferenceProvidersCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListConferenceProvidersCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListDeviceEventsCommand.ts b/clients/client-alexa-for-business/commands/ListDeviceEventsCommand.ts
index ab8096d2f37dd..55eb62fbbae70 100644
--- a/clients/client-alexa-for-business/commands/ListDeviceEventsCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListDeviceEventsCommand.ts
@@ -29,6 +29,7 @@ export class ListDeviceEventsCommand extends $Command<
ListDeviceEventsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class ListDeviceEventsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListGatewayGroupsCommand.ts b/clients/client-alexa-for-business/commands/ListGatewayGroupsCommand.ts
index f8091f8370b44..e7e2e453a833a 100644
--- a/clients/client-alexa-for-business/commands/ListGatewayGroupsCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListGatewayGroupsCommand.ts
@@ -29,6 +29,7 @@ export class ListGatewayGroupsCommand extends $Command<
ListGatewayGroupsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class ListGatewayGroupsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListGatewaysCommand.ts b/clients/client-alexa-for-business/commands/ListGatewaysCommand.ts
index bab117aa9dea3..bccba820f223c 100644
--- a/clients/client-alexa-for-business/commands/ListGatewaysCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListGatewaysCommand.ts
@@ -30,6 +30,7 @@ export class ListGatewaysCommand extends $Command<
ListGatewaysCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class ListGatewaysCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListSkillsCommand.ts b/clients/client-alexa-for-business/commands/ListSkillsCommand.ts
index 60b123a2fc2f4..add1baeb785fe 100644
--- a/clients/client-alexa-for-business/commands/ListSkillsCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListSkillsCommand.ts
@@ -28,6 +28,7 @@ export class ListSkillsCommand extends $Command<
ListSkillsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListSkillsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListSkillsStoreCategoriesCommand.ts b/clients/client-alexa-for-business/commands/ListSkillsStoreCategoriesCommand.ts
index fa6d729cec37e..f3069e621bda9 100644
--- a/clients/client-alexa-for-business/commands/ListSkillsStoreCategoriesCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListSkillsStoreCategoriesCommand.ts
@@ -28,6 +28,7 @@ export class ListSkillsStoreCategoriesCommand extends $Command<
ListSkillsStoreCategoriesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListSkillsStoreCategoriesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListSkillsStoreSkillsByCategoryCommand.ts b/clients/client-alexa-for-business/commands/ListSkillsStoreSkillsByCategoryCommand.ts
index f45508871f9e1..b32a90d296709 100644
--- a/clients/client-alexa-for-business/commands/ListSkillsStoreSkillsByCategoryCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListSkillsStoreSkillsByCategoryCommand.ts
@@ -28,6 +28,7 @@ export class ListSkillsStoreSkillsByCategoryCommand extends $Command<
ListSkillsStoreSkillsByCategoryCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListSkillsStoreSkillsByCategoryCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListSmartHomeAppliancesCommand.ts b/clients/client-alexa-for-business/commands/ListSmartHomeAppliancesCommand.ts
index a19d0bab26b2e..a28dc3235c462 100644
--- a/clients/client-alexa-for-business/commands/ListSmartHomeAppliancesCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListSmartHomeAppliancesCommand.ts
@@ -28,6 +28,7 @@ export class ListSmartHomeAppliancesCommand extends $Command<
ListSmartHomeAppliancesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListSmartHomeAppliancesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ListTagsCommand.ts b/clients/client-alexa-for-business/commands/ListTagsCommand.ts
index cec7102aad309..d364e60bcd925 100644
--- a/clients/client-alexa-for-business/commands/ListTagsCommand.ts
+++ b/clients/client-alexa-for-business/commands/ListTagsCommand.ts
@@ -25,6 +25,7 @@ export class ListTagsCommand extends $Command<
ListTagsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class ListTagsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/PutConferencePreferenceCommand.ts b/clients/client-alexa-for-business/commands/PutConferencePreferenceCommand.ts
index a9171f23e67c1..d0e358872d05c 100644
--- a/clients/client-alexa-for-business/commands/PutConferencePreferenceCommand.ts
+++ b/clients/client-alexa-for-business/commands/PutConferencePreferenceCommand.ts
@@ -29,6 +29,7 @@ export class PutConferencePreferenceCommand extends $Command<
PutConferencePreferenceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class PutConferencePreferenceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/PutInvitationConfigurationCommand.ts b/clients/client-alexa-for-business/commands/PutInvitationConfigurationCommand.ts
index 4a36d0f19fbd8..5fa5015e6bbcc 100644
--- a/clients/client-alexa-for-business/commands/PutInvitationConfigurationCommand.ts
+++ b/clients/client-alexa-for-business/commands/PutInvitationConfigurationCommand.ts
@@ -29,6 +29,7 @@ export class PutInvitationConfigurationCommand extends $Command<
PutInvitationConfigurationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class PutInvitationConfigurationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/PutRoomSkillParameterCommand.ts b/clients/client-alexa-for-business/commands/PutRoomSkillParameterCommand.ts
index 22ebf91665732..db5627a5667df 100644
--- a/clients/client-alexa-for-business/commands/PutRoomSkillParameterCommand.ts
+++ b/clients/client-alexa-for-business/commands/PutRoomSkillParameterCommand.ts
@@ -29,6 +29,7 @@ export class PutRoomSkillParameterCommand extends $Command<
PutRoomSkillParameterCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class PutRoomSkillParameterCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/PutSkillAuthorizationCommand.ts b/clients/client-alexa-for-business/commands/PutSkillAuthorizationCommand.ts
index a63463af0fc46..e5ab9acbfa3ed 100644
--- a/clients/client-alexa-for-business/commands/PutSkillAuthorizationCommand.ts
+++ b/clients/client-alexa-for-business/commands/PutSkillAuthorizationCommand.ts
@@ -30,6 +30,7 @@ export class PutSkillAuthorizationCommand extends $Command<
PutSkillAuthorizationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class PutSkillAuthorizationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/RegisterAVSDeviceCommand.ts b/clients/client-alexa-for-business/commands/RegisterAVSDeviceCommand.ts
index a6152f9cbbfb7..d61962dd496d4 100644
--- a/clients/client-alexa-for-business/commands/RegisterAVSDeviceCommand.ts
+++ b/clients/client-alexa-for-business/commands/RegisterAVSDeviceCommand.ts
@@ -29,6 +29,7 @@ export class RegisterAVSDeviceCommand extends $Command<
RegisterAVSDeviceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class RegisterAVSDeviceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/RejectSkillCommand.ts b/clients/client-alexa-for-business/commands/RejectSkillCommand.ts
index 07f35e5a7319a..771535b9939c5 100644
--- a/clients/client-alexa-for-business/commands/RejectSkillCommand.ts
+++ b/clients/client-alexa-for-business/commands/RejectSkillCommand.ts
@@ -30,6 +30,7 @@ export class RejectSkillCommand extends $Command<
RejectSkillCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -47,7 +48,10 @@ export class RejectSkillCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/ResolveRoomCommand.ts b/clients/client-alexa-for-business/commands/ResolveRoomCommand.ts
index 927f7463fd6c6..6d2b216f8e070 100644
--- a/clients/client-alexa-for-business/commands/ResolveRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/ResolveRoomCommand.ts
@@ -29,6 +29,7 @@ export class ResolveRoomCommand extends $Command<
ResolveRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class ResolveRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/RevokeInvitationCommand.ts b/clients/client-alexa-for-business/commands/RevokeInvitationCommand.ts
index 2b7a9070be3dc..f62771830029d 100644
--- a/clients/client-alexa-for-business/commands/RevokeInvitationCommand.ts
+++ b/clients/client-alexa-for-business/commands/RevokeInvitationCommand.ts
@@ -28,6 +28,7 @@ export class RevokeInvitationCommand extends $Command<
RevokeInvitationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class RevokeInvitationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchAddressBooksCommand.ts b/clients/client-alexa-for-business/commands/SearchAddressBooksCommand.ts
index 9baafac259c96..4acee89554539 100644
--- a/clients/client-alexa-for-business/commands/SearchAddressBooksCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchAddressBooksCommand.ts
@@ -29,6 +29,7 @@ export class SearchAddressBooksCommand extends $Command<
SearchAddressBooksCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchAddressBooksCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchContactsCommand.ts b/clients/client-alexa-for-business/commands/SearchContactsCommand.ts
index c42b1d47faf26..c705a48f987d8 100644
--- a/clients/client-alexa-for-business/commands/SearchContactsCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchContactsCommand.ts
@@ -29,6 +29,7 @@ export class SearchContactsCommand extends $Command<
SearchContactsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchContactsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchDevicesCommand.ts b/clients/client-alexa-for-business/commands/SearchDevicesCommand.ts
index b62649b25a23a..ea60db3879eaf 100644
--- a/clients/client-alexa-for-business/commands/SearchDevicesCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchDevicesCommand.ts
@@ -28,6 +28,7 @@ export class SearchDevicesCommand extends $Command<
SearchDevicesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class SearchDevicesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchNetworkProfilesCommand.ts b/clients/client-alexa-for-business/commands/SearchNetworkProfilesCommand.ts
index ac9c75032ff08..911399d97a87a 100644
--- a/clients/client-alexa-for-business/commands/SearchNetworkProfilesCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchNetworkProfilesCommand.ts
@@ -29,6 +29,7 @@ export class SearchNetworkProfilesCommand extends $Command<
SearchNetworkProfilesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchNetworkProfilesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchProfilesCommand.ts b/clients/client-alexa-for-business/commands/SearchProfilesCommand.ts
index ba80945f6ae48..3de7ed333a0fb 100644
--- a/clients/client-alexa-for-business/commands/SearchProfilesCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchProfilesCommand.ts
@@ -29,6 +29,7 @@ export class SearchProfilesCommand extends $Command<
SearchProfilesCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchProfilesCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchRoomsCommand.ts b/clients/client-alexa-for-business/commands/SearchRoomsCommand.ts
index b742ef02d0f91..2141c90e98495 100644
--- a/clients/client-alexa-for-business/commands/SearchRoomsCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchRoomsCommand.ts
@@ -29,6 +29,7 @@ export class SearchRoomsCommand extends $Command<
SearchRoomsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchRoomsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchSkillGroupsCommand.ts b/clients/client-alexa-for-business/commands/SearchSkillGroupsCommand.ts
index 3ce261dcdadbf..a65b3ccb8e743 100644
--- a/clients/client-alexa-for-business/commands/SearchSkillGroupsCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchSkillGroupsCommand.ts
@@ -29,6 +29,7 @@ export class SearchSkillGroupsCommand extends $Command<
SearchSkillGroupsCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchSkillGroupsCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SearchUsersCommand.ts b/clients/client-alexa-for-business/commands/SearchUsersCommand.ts
index bd9af2cf26c51..0862650b3d2dc 100644
--- a/clients/client-alexa-for-business/commands/SearchUsersCommand.ts
+++ b/clients/client-alexa-for-business/commands/SearchUsersCommand.ts
@@ -29,6 +29,7 @@ export class SearchUsersCommand extends $Command<
SearchUsersCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SearchUsersCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SendAnnouncementCommand.ts b/clients/client-alexa-for-business/commands/SendAnnouncementCommand.ts
index f44f80fd6425b..3f14f13bd4ba9 100644
--- a/clients/client-alexa-for-business/commands/SendAnnouncementCommand.ts
+++ b/clients/client-alexa-for-business/commands/SendAnnouncementCommand.ts
@@ -29,6 +29,7 @@ export class SendAnnouncementCommand extends $Command<
SendAnnouncementCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SendAnnouncementCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/SendInvitationCommand.ts b/clients/client-alexa-for-business/commands/SendInvitationCommand.ts
index a35611fa8922a..9c89962ae12f6 100644
--- a/clients/client-alexa-for-business/commands/SendInvitationCommand.ts
+++ b/clients/client-alexa-for-business/commands/SendInvitationCommand.ts
@@ -29,6 +29,7 @@ export class SendInvitationCommand extends $Command<
SendInvitationCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class SendInvitationCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/StartDeviceSyncCommand.ts b/clients/client-alexa-for-business/commands/StartDeviceSyncCommand.ts
index fe2040245744b..04ad5294dfa5b 100644
--- a/clients/client-alexa-for-business/commands/StartDeviceSyncCommand.ts
+++ b/clients/client-alexa-for-business/commands/StartDeviceSyncCommand.ts
@@ -49,6 +49,7 @@ export class StartDeviceSyncCommand extends $Command<
StartDeviceSyncCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -66,7 +67,10 @@ export class StartDeviceSyncCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/StartSmartHomeApplianceDiscoveryCommand.ts b/clients/client-alexa-for-business/commands/StartSmartHomeApplianceDiscoveryCommand.ts
index 3383faf38d7c2..e9d8911fcd356 100644
--- a/clients/client-alexa-for-business/commands/StartSmartHomeApplianceDiscoveryCommand.ts
+++ b/clients/client-alexa-for-business/commands/StartSmartHomeApplianceDiscoveryCommand.ts
@@ -29,6 +29,7 @@ export class StartSmartHomeApplianceDiscoveryCommand extends $Command<
StartSmartHomeApplianceDiscoveryCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class StartSmartHomeApplianceDiscoveryCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/TagResourceCommand.ts b/clients/client-alexa-for-business/commands/TagResourceCommand.ts
index 74678ca854f14..6c33c6f863533 100644
--- a/clients/client-alexa-for-business/commands/TagResourceCommand.ts
+++ b/clients/client-alexa-for-business/commands/TagResourceCommand.ts
@@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command<
TagResourceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UntagResourceCommand.ts b/clients/client-alexa-for-business/commands/UntagResourceCommand.ts
index fc2ba6916cb11..031c8f36ba0b4 100644
--- a/clients/client-alexa-for-business/commands/UntagResourceCommand.ts
+++ b/clients/client-alexa-for-business/commands/UntagResourceCommand.ts
@@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command<
UntagResourceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateAddressBookCommand.ts b/clients/client-alexa-for-business/commands/UpdateAddressBookCommand.ts
index 06ad624a7ffa8..7e458ced5078d 100644
--- a/clients/client-alexa-for-business/commands/UpdateAddressBookCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateAddressBookCommand.ts
@@ -28,6 +28,7 @@ export class UpdateAddressBookCommand extends $Command<
UpdateAddressBookCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateAddressBookCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateBusinessReportScheduleCommand.ts b/clients/client-alexa-for-business/commands/UpdateBusinessReportScheduleCommand.ts
index 8cf77e1826005..adbb10b806830 100644
--- a/clients/client-alexa-for-business/commands/UpdateBusinessReportScheduleCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateBusinessReportScheduleCommand.ts
@@ -29,6 +29,7 @@ export class UpdateBusinessReportScheduleCommand extends $Command<
UpdateBusinessReportScheduleCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class UpdateBusinessReportScheduleCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateConferenceProviderCommand.ts b/clients/client-alexa-for-business/commands/UpdateConferenceProviderCommand.ts
index 683d1a1e927d8..e237883c93a6f 100644
--- a/clients/client-alexa-for-business/commands/UpdateConferenceProviderCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateConferenceProviderCommand.ts
@@ -28,6 +28,7 @@ export class UpdateConferenceProviderCommand extends $Command<
UpdateConferenceProviderCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateConferenceProviderCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateContactCommand.ts b/clients/client-alexa-for-business/commands/UpdateContactCommand.ts
index 29566ab28d6c0..7528032c4197c 100644
--- a/clients/client-alexa-for-business/commands/UpdateContactCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateContactCommand.ts
@@ -28,6 +28,7 @@ export class UpdateContactCommand extends $Command<
UpdateContactCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateContactCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateDeviceCommand.ts b/clients/client-alexa-for-business/commands/UpdateDeviceCommand.ts
index 9a34cda6c9f68..ee280dc7b6c89 100644
--- a/clients/client-alexa-for-business/commands/UpdateDeviceCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateDeviceCommand.ts
@@ -28,6 +28,7 @@ export class UpdateDeviceCommand extends $Command<
UpdateDeviceCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateDeviceCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateGatewayCommand.ts b/clients/client-alexa-for-business/commands/UpdateGatewayCommand.ts
index 8f7148c3ea830..8b14acea43907 100644
--- a/clients/client-alexa-for-business/commands/UpdateGatewayCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateGatewayCommand.ts
@@ -29,6 +29,7 @@ export class UpdateGatewayCommand extends $Command<
UpdateGatewayCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class UpdateGatewayCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateGatewayGroupCommand.ts b/clients/client-alexa-for-business/commands/UpdateGatewayGroupCommand.ts
index 7248355a21eb9..2cc0aae416210 100644
--- a/clients/client-alexa-for-business/commands/UpdateGatewayGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateGatewayGroupCommand.ts
@@ -29,6 +29,7 @@ export class UpdateGatewayGroupCommand extends $Command<
UpdateGatewayGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class UpdateGatewayGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateNetworkProfileCommand.ts b/clients/client-alexa-for-business/commands/UpdateNetworkProfileCommand.ts
index c53c8b67fd4b5..8a0e855b4f63a 100644
--- a/clients/client-alexa-for-business/commands/UpdateNetworkProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateNetworkProfileCommand.ts
@@ -28,6 +28,7 @@ export class UpdateNetworkProfileCommand extends $Command<
UpdateNetworkProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateNetworkProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateProfileCommand.ts b/clients/client-alexa-for-business/commands/UpdateProfileCommand.ts
index 72eea3152a9cd..0e812dad3970e 100644
--- a/clients/client-alexa-for-business/commands/UpdateProfileCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateProfileCommand.ts
@@ -28,6 +28,7 @@ export class UpdateProfileCommand extends $Command<
UpdateProfileCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateProfileCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateRoomCommand.ts b/clients/client-alexa-for-business/commands/UpdateRoomCommand.ts
index 2f038d9e60f37..05c6e8ba1ca10 100644
--- a/clients/client-alexa-for-business/commands/UpdateRoomCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateRoomCommand.ts
@@ -28,6 +28,7 @@ export class UpdateRoomCommand extends $Command<
UpdateRoomCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateRoomCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-alexa-for-business/commands/UpdateSkillGroupCommand.ts b/clients/client-alexa-for-business/commands/UpdateSkillGroupCommand.ts
index bdb34abbbb73d..ac757b52e2ffb 100644
--- a/clients/client-alexa-for-business/commands/UpdateSkillGroupCommand.ts
+++ b/clients/client-alexa-for-business/commands/UpdateSkillGroupCommand.ts
@@ -28,6 +28,7 @@ export class UpdateSkillGroupCommand extends $Command<
UpdateSkillGroupCommandOutput,
AlexaForBusinessClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateSkillGroupCommand extends $Command<
configuration: AlexaForBusinessClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateAppCommand.ts b/clients/client-amplify/commands/CreateAppCommand.ts
index b0f5d91f42596..29fea9bc4b465 100644
--- a/clients/client-amplify/commands/CreateAppCommand.ts
+++ b/clients/client-amplify/commands/CreateAppCommand.ts
@@ -28,6 +28,7 @@ export class CreateAppCommand extends $Command<
CreateAppCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateAppCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateBackendEnvironmentCommand.ts b/clients/client-amplify/commands/CreateBackendEnvironmentCommand.ts
index ad7664be49fa0..7d55355c13362 100644
--- a/clients/client-amplify/commands/CreateBackendEnvironmentCommand.ts
+++ b/clients/client-amplify/commands/CreateBackendEnvironmentCommand.ts
@@ -28,6 +28,7 @@ export class CreateBackendEnvironmentCommand extends $Command<
CreateBackendEnvironmentCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBackendEnvironmentCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateBranchCommand.ts b/clients/client-amplify/commands/CreateBranchCommand.ts
index 9678e559560ff..9637a2eb8074f 100644
--- a/clients/client-amplify/commands/CreateBranchCommand.ts
+++ b/clients/client-amplify/commands/CreateBranchCommand.ts
@@ -28,6 +28,7 @@ export class CreateBranchCommand extends $Command<
CreateBranchCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBranchCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateDeploymentCommand.ts b/clients/client-amplify/commands/CreateDeploymentCommand.ts
index b9c2746399a09..733dd21061155 100644
--- a/clients/client-amplify/commands/CreateDeploymentCommand.ts
+++ b/clients/client-amplify/commands/CreateDeploymentCommand.ts
@@ -29,6 +29,7 @@ export class CreateDeploymentCommand extends $Command<
CreateDeploymentCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateDeploymentCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateDomainAssociationCommand.ts b/clients/client-amplify/commands/CreateDomainAssociationCommand.ts
index b8b38c3dff38f..2d59aea38a9cb 100644
--- a/clients/client-amplify/commands/CreateDomainAssociationCommand.ts
+++ b/clients/client-amplify/commands/CreateDomainAssociationCommand.ts
@@ -29,6 +29,7 @@ export class CreateDomainAssociationCommand extends $Command<
CreateDomainAssociationCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateDomainAssociationCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/CreateWebhookCommand.ts b/clients/client-amplify/commands/CreateWebhookCommand.ts
index a8221e89d3248..3fbde8099b711 100644
--- a/clients/client-amplify/commands/CreateWebhookCommand.ts
+++ b/clients/client-amplify/commands/CreateWebhookCommand.ts
@@ -28,6 +28,7 @@ export class CreateWebhookCommand extends $Command<
CreateWebhookCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateWebhookCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteAppCommand.ts b/clients/client-amplify/commands/DeleteAppCommand.ts
index e5bd488e5c0bc..1c3e39c5223c9 100644
--- a/clients/client-amplify/commands/DeleteAppCommand.ts
+++ b/clients/client-amplify/commands/DeleteAppCommand.ts
@@ -28,6 +28,7 @@ export class DeleteAppCommand extends $Command<
DeleteAppCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteAppCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteBackendEnvironmentCommand.ts b/clients/client-amplify/commands/DeleteBackendEnvironmentCommand.ts
index f1e73ee4c6f66..53649a94346dd 100644
--- a/clients/client-amplify/commands/DeleteBackendEnvironmentCommand.ts
+++ b/clients/client-amplify/commands/DeleteBackendEnvironmentCommand.ts
@@ -28,6 +28,7 @@ export class DeleteBackendEnvironmentCommand extends $Command<
DeleteBackendEnvironmentCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBackendEnvironmentCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteBranchCommand.ts b/clients/client-amplify/commands/DeleteBranchCommand.ts
index d47dea76688f9..2c2f26c1b2011 100644
--- a/clients/client-amplify/commands/DeleteBranchCommand.ts
+++ b/clients/client-amplify/commands/DeleteBranchCommand.ts
@@ -28,6 +28,7 @@ export class DeleteBranchCommand extends $Command<
DeleteBranchCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBranchCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteDomainAssociationCommand.ts b/clients/client-amplify/commands/DeleteDomainAssociationCommand.ts
index c8866a42a0156..07c60ca580abd 100644
--- a/clients/client-amplify/commands/DeleteDomainAssociationCommand.ts
+++ b/clients/client-amplify/commands/DeleteDomainAssociationCommand.ts
@@ -28,6 +28,7 @@ export class DeleteDomainAssociationCommand extends $Command<
DeleteDomainAssociationCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteDomainAssociationCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteJobCommand.ts b/clients/client-amplify/commands/DeleteJobCommand.ts
index 31f9db60ef1e5..1d5449ce7d23d 100644
--- a/clients/client-amplify/commands/DeleteJobCommand.ts
+++ b/clients/client-amplify/commands/DeleteJobCommand.ts
@@ -28,6 +28,7 @@ export class DeleteJobCommand extends $Command<
DeleteJobCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteJobCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/DeleteWebhookCommand.ts b/clients/client-amplify/commands/DeleteWebhookCommand.ts
index a8580f4f965c6..3848331aae715 100644
--- a/clients/client-amplify/commands/DeleteWebhookCommand.ts
+++ b/clients/client-amplify/commands/DeleteWebhookCommand.ts
@@ -28,6 +28,7 @@ export class DeleteWebhookCommand extends $Command<
DeleteWebhookCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteWebhookCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GenerateAccessLogsCommand.ts b/clients/client-amplify/commands/GenerateAccessLogsCommand.ts
index fb9e993a7f5c4..cd8b73ae0f8ad 100644
--- a/clients/client-amplify/commands/GenerateAccessLogsCommand.ts
+++ b/clients/client-amplify/commands/GenerateAccessLogsCommand.ts
@@ -29,6 +29,7 @@ export class GenerateAccessLogsCommand extends $Command<
GenerateAccessLogsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class GenerateAccessLogsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetAppCommand.ts b/clients/client-amplify/commands/GetAppCommand.ts
index 8b9b84ec923f9..8981eb07fcecd 100644
--- a/clients/client-amplify/commands/GetAppCommand.ts
+++ b/clients/client-amplify/commands/GetAppCommand.ts
@@ -21,6 +21,7 @@ export type GetAppCommandOutput = GetAppResult & __MetadataBearer;
* Returns an existing Amplify app by appID.
*/
export class GetAppCommand extends $Command {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -38,7 +39,10 @@ export class GetAppCommand extends $Command {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetArtifactUrlCommand.ts b/clients/client-amplify/commands/GetArtifactUrlCommand.ts
index 6f5a7146fa67d..8772b101603f4 100644
--- a/clients/client-amplify/commands/GetArtifactUrlCommand.ts
+++ b/clients/client-amplify/commands/GetArtifactUrlCommand.ts
@@ -28,6 +28,7 @@ export class GetArtifactUrlCommand extends $Command<
GetArtifactUrlCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetArtifactUrlCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetBackendEnvironmentCommand.ts b/clients/client-amplify/commands/GetBackendEnvironmentCommand.ts
index 0cf9d254be7c8..5fe57ae954e14 100644
--- a/clients/client-amplify/commands/GetBackendEnvironmentCommand.ts
+++ b/clients/client-amplify/commands/GetBackendEnvironmentCommand.ts
@@ -28,6 +28,7 @@ export class GetBackendEnvironmentCommand extends $Command<
GetBackendEnvironmentCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendEnvironmentCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetBranchCommand.ts b/clients/client-amplify/commands/GetBranchCommand.ts
index e5ebbe746f578..4139bfa737fa2 100644
--- a/clients/client-amplify/commands/GetBranchCommand.ts
+++ b/clients/client-amplify/commands/GetBranchCommand.ts
@@ -28,6 +28,7 @@ export class GetBranchCommand extends $Command<
GetBranchCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBranchCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetDomainAssociationCommand.ts b/clients/client-amplify/commands/GetDomainAssociationCommand.ts
index 092cc79753bea..174bd4f0c7727 100644
--- a/clients/client-amplify/commands/GetDomainAssociationCommand.ts
+++ b/clients/client-amplify/commands/GetDomainAssociationCommand.ts
@@ -28,6 +28,7 @@ export class GetDomainAssociationCommand extends $Command<
GetDomainAssociationCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetDomainAssociationCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetJobCommand.ts b/clients/client-amplify/commands/GetJobCommand.ts
index 1bc2363b7f81e..e63ad13ff0dab 100644
--- a/clients/client-amplify/commands/GetJobCommand.ts
+++ b/clients/client-amplify/commands/GetJobCommand.ts
@@ -21,6 +21,7 @@ export type GetJobCommandOutput = GetJobResult & __MetadataBearer;
* Returns a job for a branch of an Amplify app.
*/
export class GetJobCommand extends $Command {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -38,7 +39,10 @@ export class GetJobCommand extends $Command {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/GetWebhookCommand.ts b/clients/client-amplify/commands/GetWebhookCommand.ts
index e32f47ed559a1..034d26defd3a6 100644
--- a/clients/client-amplify/commands/GetWebhookCommand.ts
+++ b/clients/client-amplify/commands/GetWebhookCommand.ts
@@ -28,6 +28,7 @@ export class GetWebhookCommand extends $Command<
GetWebhookCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetWebhookCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListAppsCommand.ts b/clients/client-amplify/commands/ListAppsCommand.ts
index aea9bb69ac256..5cc2a50e05d4c 100644
--- a/clients/client-amplify/commands/ListAppsCommand.ts
+++ b/clients/client-amplify/commands/ListAppsCommand.ts
@@ -28,6 +28,7 @@ export class ListAppsCommand extends $Command<
ListAppsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListAppsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListArtifactsCommand.ts b/clients/client-amplify/commands/ListArtifactsCommand.ts
index 4d2bfdbbadcf8..c29932784059b 100644
--- a/clients/client-amplify/commands/ListArtifactsCommand.ts
+++ b/clients/client-amplify/commands/ListArtifactsCommand.ts
@@ -28,6 +28,7 @@ export class ListArtifactsCommand extends $Command<
ListArtifactsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListArtifactsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListBackendEnvironmentsCommand.ts b/clients/client-amplify/commands/ListBackendEnvironmentsCommand.ts
index fa47e6c225748..255c373190f7a 100644
--- a/clients/client-amplify/commands/ListBackendEnvironmentsCommand.ts
+++ b/clients/client-amplify/commands/ListBackendEnvironmentsCommand.ts
@@ -28,6 +28,7 @@ export class ListBackendEnvironmentsCommand extends $Command<
ListBackendEnvironmentsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListBackendEnvironmentsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListBranchesCommand.ts b/clients/client-amplify/commands/ListBranchesCommand.ts
index a977377a7bfed..e3e2b9e840d47 100644
--- a/clients/client-amplify/commands/ListBranchesCommand.ts
+++ b/clients/client-amplify/commands/ListBranchesCommand.ts
@@ -28,6 +28,7 @@ export class ListBranchesCommand extends $Command<
ListBranchesCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListBranchesCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListDomainAssociationsCommand.ts b/clients/client-amplify/commands/ListDomainAssociationsCommand.ts
index b24dc8762429b..6e869652b5cf9 100644
--- a/clients/client-amplify/commands/ListDomainAssociationsCommand.ts
+++ b/clients/client-amplify/commands/ListDomainAssociationsCommand.ts
@@ -28,6 +28,7 @@ export class ListDomainAssociationsCommand extends $Command<
ListDomainAssociationsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListDomainAssociationsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListJobsCommand.ts b/clients/client-amplify/commands/ListJobsCommand.ts
index ef1e0ade37b08..eaccd101d40d3 100644
--- a/clients/client-amplify/commands/ListJobsCommand.ts
+++ b/clients/client-amplify/commands/ListJobsCommand.ts
@@ -28,6 +28,7 @@ export class ListJobsCommand extends $Command<
ListJobsCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListJobsCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListTagsForResourceCommand.ts b/clients/client-amplify/commands/ListTagsForResourceCommand.ts
index b2aad33b8ff8a..1ec5764603df4 100644
--- a/clients/client-amplify/commands/ListTagsForResourceCommand.ts
+++ b/clients/client-amplify/commands/ListTagsForResourceCommand.ts
@@ -28,6 +28,7 @@ export class ListTagsForResourceCommand extends $Command<
ListTagsForResourceCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListTagsForResourceCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/ListWebhooksCommand.ts b/clients/client-amplify/commands/ListWebhooksCommand.ts
index ddf311effac9a..d7c6be4765280 100644
--- a/clients/client-amplify/commands/ListWebhooksCommand.ts
+++ b/clients/client-amplify/commands/ListWebhooksCommand.ts
@@ -28,6 +28,7 @@ export class ListWebhooksCommand extends $Command<
ListWebhooksCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListWebhooksCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/StartDeploymentCommand.ts b/clients/client-amplify/commands/StartDeploymentCommand.ts
index 4036601b1a985..3a486153ce1c4 100644
--- a/clients/client-amplify/commands/StartDeploymentCommand.ts
+++ b/clients/client-amplify/commands/StartDeploymentCommand.ts
@@ -29,6 +29,7 @@ export class StartDeploymentCommand extends $Command<
StartDeploymentCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class StartDeploymentCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/StartJobCommand.ts b/clients/client-amplify/commands/StartJobCommand.ts
index e9eadb510e365..d663336de3f70 100644
--- a/clients/client-amplify/commands/StartJobCommand.ts
+++ b/clients/client-amplify/commands/StartJobCommand.ts
@@ -28,6 +28,7 @@ export class StartJobCommand extends $Command<
StartJobCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class StartJobCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/StopJobCommand.ts b/clients/client-amplify/commands/StopJobCommand.ts
index 4f0d69223fcfc..75b7516a74e23 100644
--- a/clients/client-amplify/commands/StopJobCommand.ts
+++ b/clients/client-amplify/commands/StopJobCommand.ts
@@ -24,6 +24,7 @@ export type StopJobCommandOutput = StopJobResult & __MetadataBearer;
* Stops a job that is in progress for a branch of an Amplify app.
*/
export class StopJobCommand extends $Command {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -41,7 +42,10 @@ export class StopJobCommand extends $Command {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/TagResourceCommand.ts b/clients/client-amplify/commands/TagResourceCommand.ts
index 743b2dae29afe..c74e3d518e84e 100644
--- a/clients/client-amplify/commands/TagResourceCommand.ts
+++ b/clients/client-amplify/commands/TagResourceCommand.ts
@@ -28,6 +28,7 @@ export class TagResourceCommand extends $Command<
TagResourceCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class TagResourceCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/UntagResourceCommand.ts b/clients/client-amplify/commands/UntagResourceCommand.ts
index 8b97393ba790f..f3445e46a30af 100644
--- a/clients/client-amplify/commands/UntagResourceCommand.ts
+++ b/clients/client-amplify/commands/UntagResourceCommand.ts
@@ -28,6 +28,7 @@ export class UntagResourceCommand extends $Command<
UntagResourceCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UntagResourceCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/UpdateAppCommand.ts b/clients/client-amplify/commands/UpdateAppCommand.ts
index cf97b51057662..59ebea5e7c8d3 100644
--- a/clients/client-amplify/commands/UpdateAppCommand.ts
+++ b/clients/client-amplify/commands/UpdateAppCommand.ts
@@ -28,6 +28,7 @@ export class UpdateAppCommand extends $Command<
UpdateAppCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateAppCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/UpdateBranchCommand.ts b/clients/client-amplify/commands/UpdateBranchCommand.ts
index a56cae54093d7..783b1bdcf0cd9 100644
--- a/clients/client-amplify/commands/UpdateBranchCommand.ts
+++ b/clients/client-amplify/commands/UpdateBranchCommand.ts
@@ -28,6 +28,7 @@ export class UpdateBranchCommand extends $Command<
UpdateBranchCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateBranchCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/UpdateDomainAssociationCommand.ts b/clients/client-amplify/commands/UpdateDomainAssociationCommand.ts
index 8788fd8528c49..dc042a10556e9 100644
--- a/clients/client-amplify/commands/UpdateDomainAssociationCommand.ts
+++ b/clients/client-amplify/commands/UpdateDomainAssociationCommand.ts
@@ -28,6 +28,7 @@ export class UpdateDomainAssociationCommand extends $Command<
UpdateDomainAssociationCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateDomainAssociationCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplify/commands/UpdateWebhookCommand.ts b/clients/client-amplify/commands/UpdateWebhookCommand.ts
index 01b4d490ad212..f7c5c71918218 100644
--- a/clients/client-amplify/commands/UpdateWebhookCommand.ts
+++ b/clients/client-amplify/commands/UpdateWebhookCommand.ts
@@ -28,6 +28,7 @@ export class UpdateWebhookCommand extends $Command<
UpdateWebhookCommandOutput,
AmplifyClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateWebhookCommand extends $Command<
configuration: AmplifyClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CloneBackendCommand.ts b/clients/client-amplifybackend/commands/CloneBackendCommand.ts
index e72dda96e1c80..9508ba8f2da80 100644
--- a/clients/client-amplifybackend/commands/CloneBackendCommand.ts
+++ b/clients/client-amplifybackend/commands/CloneBackendCommand.ts
@@ -28,6 +28,7 @@ export class CloneBackendCommand extends $Command<
CloneBackendCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CloneBackendCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CreateBackendAPICommand.ts b/clients/client-amplifybackend/commands/CreateBackendAPICommand.ts
index fa4f5576fd1e5..c0e839725753d 100644
--- a/clients/client-amplifybackend/commands/CreateBackendAPICommand.ts
+++ b/clients/client-amplifybackend/commands/CreateBackendAPICommand.ts
@@ -28,6 +28,7 @@ export class CreateBackendAPICommand extends $Command<
CreateBackendAPICommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBackendAPICommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CreateBackendAuthCommand.ts b/clients/client-amplifybackend/commands/CreateBackendAuthCommand.ts
index fe64123da4cd1..ee66b1f262a8d 100644
--- a/clients/client-amplifybackend/commands/CreateBackendAuthCommand.ts
+++ b/clients/client-amplifybackend/commands/CreateBackendAuthCommand.ts
@@ -28,6 +28,7 @@ export class CreateBackendAuthCommand extends $Command<
CreateBackendAuthCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBackendAuthCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CreateBackendCommand.ts b/clients/client-amplifybackend/commands/CreateBackendCommand.ts
index cf3b3aef47026..7c4ee7b5efc74 100644
--- a/clients/client-amplifybackend/commands/CreateBackendCommand.ts
+++ b/clients/client-amplifybackend/commands/CreateBackendCommand.ts
@@ -28,6 +28,7 @@ export class CreateBackendCommand extends $Command<
CreateBackendCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBackendCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CreateBackendConfigCommand.ts b/clients/client-amplifybackend/commands/CreateBackendConfigCommand.ts
index 485eda85ae6f5..413fe1da22bf2 100644
--- a/clients/client-amplifybackend/commands/CreateBackendConfigCommand.ts
+++ b/clients/client-amplifybackend/commands/CreateBackendConfigCommand.ts
@@ -28,6 +28,7 @@ export class CreateBackendConfigCommand extends $Command<
CreateBackendConfigCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBackendConfigCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/CreateTokenCommand.ts b/clients/client-amplifybackend/commands/CreateTokenCommand.ts
index a7df506a701d4..cab388b376838 100644
--- a/clients/client-amplifybackend/commands/CreateTokenCommand.ts
+++ b/clients/client-amplifybackend/commands/CreateTokenCommand.ts
@@ -28,6 +28,7 @@ export class CreateTokenCommand extends $Command<
CreateTokenCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateTokenCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/DeleteBackendAPICommand.ts b/clients/client-amplifybackend/commands/DeleteBackendAPICommand.ts
index 834aeeedb1233..192b0b2001cdb 100644
--- a/clients/client-amplifybackend/commands/DeleteBackendAPICommand.ts
+++ b/clients/client-amplifybackend/commands/DeleteBackendAPICommand.ts
@@ -28,6 +28,7 @@ export class DeleteBackendAPICommand extends $Command<
DeleteBackendAPICommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBackendAPICommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/DeleteBackendAuthCommand.ts b/clients/client-amplifybackend/commands/DeleteBackendAuthCommand.ts
index d3dc8c56d9fa8..d787c13fb45dc 100644
--- a/clients/client-amplifybackend/commands/DeleteBackendAuthCommand.ts
+++ b/clients/client-amplifybackend/commands/DeleteBackendAuthCommand.ts
@@ -28,6 +28,7 @@ export class DeleteBackendAuthCommand extends $Command<
DeleteBackendAuthCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBackendAuthCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/DeleteBackendCommand.ts b/clients/client-amplifybackend/commands/DeleteBackendCommand.ts
index c56726b59a808..c48e8d0eacf44 100644
--- a/clients/client-amplifybackend/commands/DeleteBackendCommand.ts
+++ b/clients/client-amplifybackend/commands/DeleteBackendCommand.ts
@@ -28,6 +28,7 @@ export class DeleteBackendCommand extends $Command<
DeleteBackendCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBackendCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/DeleteTokenCommand.ts b/clients/client-amplifybackend/commands/DeleteTokenCommand.ts
index 50381ff5f9ed3..16c9b5326105d 100644
--- a/clients/client-amplifybackend/commands/DeleteTokenCommand.ts
+++ b/clients/client-amplifybackend/commands/DeleteTokenCommand.ts
@@ -28,6 +28,7 @@ export class DeleteTokenCommand extends $Command<
DeleteTokenCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteTokenCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GenerateBackendAPIModelsCommand.ts b/clients/client-amplifybackend/commands/GenerateBackendAPIModelsCommand.ts
index 38b40362d6222..f87d4bbbdf058 100644
--- a/clients/client-amplifybackend/commands/GenerateBackendAPIModelsCommand.ts
+++ b/clients/client-amplifybackend/commands/GenerateBackendAPIModelsCommand.ts
@@ -28,6 +28,7 @@ export class GenerateBackendAPIModelsCommand extends $Command<
GenerateBackendAPIModelsCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GenerateBackendAPIModelsCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetBackendAPICommand.ts b/clients/client-amplifybackend/commands/GetBackendAPICommand.ts
index e7343e0671585..83992454ab47e 100644
--- a/clients/client-amplifybackend/commands/GetBackendAPICommand.ts
+++ b/clients/client-amplifybackend/commands/GetBackendAPICommand.ts
@@ -28,6 +28,7 @@ export class GetBackendAPICommand extends $Command<
GetBackendAPICommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendAPICommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetBackendAPIModelsCommand.ts b/clients/client-amplifybackend/commands/GetBackendAPIModelsCommand.ts
index 4c82de84ff465..25c9a5dd59e17 100644
--- a/clients/client-amplifybackend/commands/GetBackendAPIModelsCommand.ts
+++ b/clients/client-amplifybackend/commands/GetBackendAPIModelsCommand.ts
@@ -28,6 +28,7 @@ export class GetBackendAPIModelsCommand extends $Command<
GetBackendAPIModelsCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendAPIModelsCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetBackendAuthCommand.ts b/clients/client-amplifybackend/commands/GetBackendAuthCommand.ts
index 5a4d1a4763154..11d15e905d1c7 100644
--- a/clients/client-amplifybackend/commands/GetBackendAuthCommand.ts
+++ b/clients/client-amplifybackend/commands/GetBackendAuthCommand.ts
@@ -28,6 +28,7 @@ export class GetBackendAuthCommand extends $Command<
GetBackendAuthCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendAuthCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetBackendCommand.ts b/clients/client-amplifybackend/commands/GetBackendCommand.ts
index 790c49d4ded42..71c3ad87f3d16 100644
--- a/clients/client-amplifybackend/commands/GetBackendCommand.ts
+++ b/clients/client-amplifybackend/commands/GetBackendCommand.ts
@@ -28,6 +28,7 @@ export class GetBackendCommand extends $Command<
GetBackendCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetBackendJobCommand.ts b/clients/client-amplifybackend/commands/GetBackendJobCommand.ts
index a19b1ff389153..d4568d24fb2c3 100644
--- a/clients/client-amplifybackend/commands/GetBackendJobCommand.ts
+++ b/clients/client-amplifybackend/commands/GetBackendJobCommand.ts
@@ -28,6 +28,7 @@ export class GetBackendJobCommand extends $Command<
GetBackendJobCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBackendJobCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/GetTokenCommand.ts b/clients/client-amplifybackend/commands/GetTokenCommand.ts
index f4d5d4508d477..177de60027958 100644
--- a/clients/client-amplifybackend/commands/GetTokenCommand.ts
+++ b/clients/client-amplifybackend/commands/GetTokenCommand.ts
@@ -28,6 +28,7 @@ export class GetTokenCommand extends $Command<
GetTokenCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetTokenCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/ListBackendJobsCommand.ts b/clients/client-amplifybackend/commands/ListBackendJobsCommand.ts
index 6b5b5545ed741..42590104fbff8 100644
--- a/clients/client-amplifybackend/commands/ListBackendJobsCommand.ts
+++ b/clients/client-amplifybackend/commands/ListBackendJobsCommand.ts
@@ -28,6 +28,7 @@ export class ListBackendJobsCommand extends $Command<
ListBackendJobsCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class ListBackendJobsCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/RemoveAllBackendsCommand.ts b/clients/client-amplifybackend/commands/RemoveAllBackendsCommand.ts
index 88da4106bf72b..06069dc19447d 100644
--- a/clients/client-amplifybackend/commands/RemoveAllBackendsCommand.ts
+++ b/clients/client-amplifybackend/commands/RemoveAllBackendsCommand.ts
@@ -28,6 +28,7 @@ export class RemoveAllBackendsCommand extends $Command<
RemoveAllBackendsCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class RemoveAllBackendsCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/RemoveBackendConfigCommand.ts b/clients/client-amplifybackend/commands/RemoveBackendConfigCommand.ts
index ee3be6e760f1e..2a8c2e3f54f6d 100644
--- a/clients/client-amplifybackend/commands/RemoveBackendConfigCommand.ts
+++ b/clients/client-amplifybackend/commands/RemoveBackendConfigCommand.ts
@@ -28,6 +28,7 @@ export class RemoveBackendConfigCommand extends $Command<
RemoveBackendConfigCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class RemoveBackendConfigCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/UpdateBackendAPICommand.ts b/clients/client-amplifybackend/commands/UpdateBackendAPICommand.ts
index 7373cb4b5ae08..fc5ef2e6ff382 100644
--- a/clients/client-amplifybackend/commands/UpdateBackendAPICommand.ts
+++ b/clients/client-amplifybackend/commands/UpdateBackendAPICommand.ts
@@ -28,6 +28,7 @@ export class UpdateBackendAPICommand extends $Command<
UpdateBackendAPICommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateBackendAPICommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/UpdateBackendAuthCommand.ts b/clients/client-amplifybackend/commands/UpdateBackendAuthCommand.ts
index 72dda5ca50cfd..c33d75106e84d 100644
--- a/clients/client-amplifybackend/commands/UpdateBackendAuthCommand.ts
+++ b/clients/client-amplifybackend/commands/UpdateBackendAuthCommand.ts
@@ -28,6 +28,7 @@ export class UpdateBackendAuthCommand extends $Command<
UpdateBackendAuthCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateBackendAuthCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/UpdateBackendConfigCommand.ts b/clients/client-amplifybackend/commands/UpdateBackendConfigCommand.ts
index 617e9f8db6d28..b532ca273f6e4 100644
--- a/clients/client-amplifybackend/commands/UpdateBackendConfigCommand.ts
+++ b/clients/client-amplifybackend/commands/UpdateBackendConfigCommand.ts
@@ -28,6 +28,7 @@ export class UpdateBackendConfigCommand extends $Command<
UpdateBackendConfigCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateBackendConfigCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-amplifybackend/commands/UpdateBackendJobCommand.ts b/clients/client-amplifybackend/commands/UpdateBackendJobCommand.ts
index 9f6b0662da7f8..6ce59fc01dced 100644
--- a/clients/client-amplifybackend/commands/UpdateBackendJobCommand.ts
+++ b/clients/client-amplifybackend/commands/UpdateBackendJobCommand.ts
@@ -28,6 +28,7 @@ export class UpdateBackendJobCommand extends $Command<
UpdateBackendJobCommandOutput,
AmplifyBackendClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class UpdateBackendJobCommand extends $Command<
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateApiKeyCommand.ts b/clients/client-api-gateway/commands/CreateApiKeyCommand.ts
index 19ae4f0e2e441..71800662e953f 100644
--- a/clients/client-api-gateway/commands/CreateApiKeyCommand.ts
+++ b/clients/client-api-gateway/commands/CreateApiKeyCommand.ts
@@ -29,6 +29,7 @@ export class CreateApiKeyCommand extends $Command<
CreateApiKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateApiKeyCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts b/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts
index 4c6d477c9e15b..39f2451e581ae 100644
--- a/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts
+++ b/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts
@@ -29,6 +29,7 @@ export class CreateAuthorizerCommand extends $Command<
CreateAuthorizerCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateAuthorizerCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts b/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
index b7a3d403debab..eb34f31e9994f 100644
--- a/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
+++ b/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
@@ -28,6 +28,7 @@ export class CreateBasePathMappingCommand extends $Command<
CreateBasePathMappingCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateBasePathMappingCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateDeploymentCommand.ts b/clients/client-api-gateway/commands/CreateDeploymentCommand.ts
index 3e8621103cfef..a1289f79e21df 100644
--- a/clients/client-api-gateway/commands/CreateDeploymentCommand.ts
+++ b/clients/client-api-gateway/commands/CreateDeploymentCommand.ts
@@ -28,6 +28,7 @@ export class CreateDeploymentCommand extends $Command<
CreateDeploymentCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateDeploymentCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateDocumentationPartCommand.ts b/clients/client-api-gateway/commands/CreateDocumentationPartCommand.ts
index 7a8c17c9d822a..0de0b544d71cd 100644
--- a/clients/client-api-gateway/commands/CreateDocumentationPartCommand.ts
+++ b/clients/client-api-gateway/commands/CreateDocumentationPartCommand.ts
@@ -25,6 +25,7 @@ export class CreateDocumentationPartCommand extends $Command<
CreateDocumentationPartCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class CreateDocumentationPartCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateDocumentationVersionCommand.ts b/clients/client-api-gateway/commands/CreateDocumentationVersionCommand.ts
index b1a828cc3144f..4d2dcdcce5cb8 100644
--- a/clients/client-api-gateway/commands/CreateDocumentationVersionCommand.ts
+++ b/clients/client-api-gateway/commands/CreateDocumentationVersionCommand.ts
@@ -25,6 +25,7 @@ export class CreateDocumentationVersionCommand extends $Command<
CreateDocumentationVersionCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class CreateDocumentationVersionCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateDomainNameCommand.ts b/clients/client-api-gateway/commands/CreateDomainNameCommand.ts
index fa5db31960823..fe2f0860244fb 100644
--- a/clients/client-api-gateway/commands/CreateDomainNameCommand.ts
+++ b/clients/client-api-gateway/commands/CreateDomainNameCommand.ts
@@ -28,6 +28,7 @@ export class CreateDomainNameCommand extends $Command<
CreateDomainNameCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateDomainNameCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateModelCommand.ts b/clients/client-api-gateway/commands/CreateModelCommand.ts
index d20a4f58480c3..7df75b598a0ac 100644
--- a/clients/client-api-gateway/commands/CreateModelCommand.ts
+++ b/clients/client-api-gateway/commands/CreateModelCommand.ts
@@ -28,6 +28,7 @@ export class CreateModelCommand extends $Command<
CreateModelCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateModelCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateRequestValidatorCommand.ts b/clients/client-api-gateway/commands/CreateRequestValidatorCommand.ts
index 4d9129d841242..f00f40d56c47e 100644
--- a/clients/client-api-gateway/commands/CreateRequestValidatorCommand.ts
+++ b/clients/client-api-gateway/commands/CreateRequestValidatorCommand.ts
@@ -28,6 +28,7 @@ export class CreateRequestValidatorCommand extends $Command<
CreateRequestValidatorCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateRequestValidatorCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateResourceCommand.ts b/clients/client-api-gateway/commands/CreateResourceCommand.ts
index ab38ab6c59985..1a1a529a411a4 100644
--- a/clients/client-api-gateway/commands/CreateResourceCommand.ts
+++ b/clients/client-api-gateway/commands/CreateResourceCommand.ts
@@ -28,6 +28,7 @@ export class CreateResourceCommand extends $Command<
CreateResourceCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateResourceCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateRestApiCommand.ts b/clients/client-api-gateway/commands/CreateRestApiCommand.ts
index 0a87866da4ae4..c685c1d7a913f 100644
--- a/clients/client-api-gateway/commands/CreateRestApiCommand.ts
+++ b/clients/client-api-gateway/commands/CreateRestApiCommand.ts
@@ -28,6 +28,7 @@ export class CreateRestApiCommand extends $Command<
CreateRestApiCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateRestApiCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateStageCommand.ts b/clients/client-api-gateway/commands/CreateStageCommand.ts
index 82aa01658940d..2be0db2da4432 100644
--- a/clients/client-api-gateway/commands/CreateStageCommand.ts
+++ b/clients/client-api-gateway/commands/CreateStageCommand.ts
@@ -29,6 +29,7 @@ export class CreateStageCommand extends $Command<
CreateStageCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class CreateStageCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateUsagePlanCommand.ts b/clients/client-api-gateway/commands/CreateUsagePlanCommand.ts
index cfa4174863743..be20c89ed91e6 100644
--- a/clients/client-api-gateway/commands/CreateUsagePlanCommand.ts
+++ b/clients/client-api-gateway/commands/CreateUsagePlanCommand.ts
@@ -28,6 +28,7 @@ export class CreateUsagePlanCommand extends $Command<
CreateUsagePlanCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateUsagePlanCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateUsagePlanKeyCommand.ts b/clients/client-api-gateway/commands/CreateUsagePlanKeyCommand.ts
index 3533ea08a48a1..5c31fe2c423eb 100644
--- a/clients/client-api-gateway/commands/CreateUsagePlanKeyCommand.ts
+++ b/clients/client-api-gateway/commands/CreateUsagePlanKeyCommand.ts
@@ -28,6 +28,7 @@ export class CreateUsagePlanKeyCommand extends $Command<
CreateUsagePlanKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateUsagePlanKeyCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/CreateVpcLinkCommand.ts b/clients/client-api-gateway/commands/CreateVpcLinkCommand.ts
index 3793c307e6979..04b0cb5aac1bc 100644
--- a/clients/client-api-gateway/commands/CreateVpcLinkCommand.ts
+++ b/clients/client-api-gateway/commands/CreateVpcLinkCommand.ts
@@ -28,6 +28,7 @@ export class CreateVpcLinkCommand extends $Command<
CreateVpcLinkCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class CreateVpcLinkCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteApiKeyCommand.ts b/clients/client-api-gateway/commands/DeleteApiKeyCommand.ts
index 7ea07afecd830..c3558474861cc 100644
--- a/clients/client-api-gateway/commands/DeleteApiKeyCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteApiKeyCommand.ts
@@ -28,6 +28,7 @@ export class DeleteApiKeyCommand extends $Command<
DeleteApiKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteApiKeyCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteAuthorizerCommand.ts b/clients/client-api-gateway/commands/DeleteAuthorizerCommand.ts
index 1f3f1098e5af1..1594f204280fd 100644
--- a/clients/client-api-gateway/commands/DeleteAuthorizerCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteAuthorizerCommand.ts
@@ -29,6 +29,7 @@ export class DeleteAuthorizerCommand extends $Command<
DeleteAuthorizerCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class DeleteAuthorizerCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteBasePathMappingCommand.ts b/clients/client-api-gateway/commands/DeleteBasePathMappingCommand.ts
index ca0aa071ecb08..855c789746b94 100644
--- a/clients/client-api-gateway/commands/DeleteBasePathMappingCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteBasePathMappingCommand.ts
@@ -28,6 +28,7 @@ export class DeleteBasePathMappingCommand extends $Command<
DeleteBasePathMappingCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteBasePathMappingCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteClientCertificateCommand.ts b/clients/client-api-gateway/commands/DeleteClientCertificateCommand.ts
index 326578005b138..cd929f22faf31 100644
--- a/clients/client-api-gateway/commands/DeleteClientCertificateCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteClientCertificateCommand.ts
@@ -28,6 +28,7 @@ export class DeleteClientCertificateCommand extends $Command<
DeleteClientCertificateCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteClientCertificateCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteDeploymentCommand.ts b/clients/client-api-gateway/commands/DeleteDeploymentCommand.ts
index a62f7278ba3a5..1b1abf5f63707 100644
--- a/clients/client-api-gateway/commands/DeleteDeploymentCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteDeploymentCommand.ts
@@ -28,6 +28,7 @@ export class DeleteDeploymentCommand extends $Command<
DeleteDeploymentCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteDeploymentCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteDocumentationPartCommand.ts b/clients/client-api-gateway/commands/DeleteDocumentationPartCommand.ts
index 5167dca39ca31..37372462274a5 100644
--- a/clients/client-api-gateway/commands/DeleteDocumentationPartCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteDocumentationPartCommand.ts
@@ -25,6 +25,7 @@ export class DeleteDocumentationPartCommand extends $Command<
DeleteDocumentationPartCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class DeleteDocumentationPartCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteDocumentationVersionCommand.ts b/clients/client-api-gateway/commands/DeleteDocumentationVersionCommand.ts
index d4128b3b1d709..298db5c8d8dd8 100644
--- a/clients/client-api-gateway/commands/DeleteDocumentationVersionCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteDocumentationVersionCommand.ts
@@ -25,6 +25,7 @@ export class DeleteDocumentationVersionCommand extends $Command<
DeleteDocumentationVersionCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class DeleteDocumentationVersionCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteDomainNameCommand.ts b/clients/client-api-gateway/commands/DeleteDomainNameCommand.ts
index 1bbc1cdde911b..e2024e1e8c3a0 100644
--- a/clients/client-api-gateway/commands/DeleteDomainNameCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteDomainNameCommand.ts
@@ -28,6 +28,7 @@ export class DeleteDomainNameCommand extends $Command<
DeleteDomainNameCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteDomainNameCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteGatewayResponseCommand.ts b/clients/client-api-gateway/commands/DeleteGatewayResponseCommand.ts
index ee201f8167fbb..33f56780975e4 100644
--- a/clients/client-api-gateway/commands/DeleteGatewayResponseCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteGatewayResponseCommand.ts
@@ -28,6 +28,7 @@ export class DeleteGatewayResponseCommand extends $Command<
DeleteGatewayResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteGatewayResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteIntegrationCommand.ts b/clients/client-api-gateway/commands/DeleteIntegrationCommand.ts
index df0f274bbbe1a..fdc0df17f2558 100644
--- a/clients/client-api-gateway/commands/DeleteIntegrationCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteIntegrationCommand.ts
@@ -28,6 +28,7 @@ export class DeleteIntegrationCommand extends $Command<
DeleteIntegrationCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteIntegrationCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteIntegrationResponseCommand.ts b/clients/client-api-gateway/commands/DeleteIntegrationResponseCommand.ts
index 9b534d09f0533..daa5a1849923a 100644
--- a/clients/client-api-gateway/commands/DeleteIntegrationResponseCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteIntegrationResponseCommand.ts
@@ -28,6 +28,7 @@ export class DeleteIntegrationResponseCommand extends $Command<
DeleteIntegrationResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteIntegrationResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteMethodCommand.ts b/clients/client-api-gateway/commands/DeleteMethodCommand.ts
index 88270c47f3d0a..b89757a562ca9 100644
--- a/clients/client-api-gateway/commands/DeleteMethodCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteMethodCommand.ts
@@ -28,6 +28,7 @@ export class DeleteMethodCommand extends $Command<
DeleteMethodCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteMethodCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteMethodResponseCommand.ts b/clients/client-api-gateway/commands/DeleteMethodResponseCommand.ts
index 0ecf9756db297..3bbca491a0020 100644
--- a/clients/client-api-gateway/commands/DeleteMethodResponseCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteMethodResponseCommand.ts
@@ -28,6 +28,7 @@ export class DeleteMethodResponseCommand extends $Command<
DeleteMethodResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteMethodResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteModelCommand.ts b/clients/client-api-gateway/commands/DeleteModelCommand.ts
index e5d7baf176d35..3de839c5b990a 100644
--- a/clients/client-api-gateway/commands/DeleteModelCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteModelCommand.ts
@@ -28,6 +28,7 @@ export class DeleteModelCommand extends $Command<
DeleteModelCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteModelCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteRequestValidatorCommand.ts b/clients/client-api-gateway/commands/DeleteRequestValidatorCommand.ts
index 0a886f9fa9f81..96ca359a8e690 100644
--- a/clients/client-api-gateway/commands/DeleteRequestValidatorCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteRequestValidatorCommand.ts
@@ -28,6 +28,7 @@ export class DeleteRequestValidatorCommand extends $Command<
DeleteRequestValidatorCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteRequestValidatorCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteResourceCommand.ts b/clients/client-api-gateway/commands/DeleteResourceCommand.ts
index cfcc1e0365c4e..c4105d919c1e6 100644
--- a/clients/client-api-gateway/commands/DeleteResourceCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteResourceCommand.ts
@@ -28,6 +28,7 @@ export class DeleteResourceCommand extends $Command<
DeleteResourceCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteResourceCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteRestApiCommand.ts b/clients/client-api-gateway/commands/DeleteRestApiCommand.ts
index 6c18751d7af3b..bef76ef640ebb 100644
--- a/clients/client-api-gateway/commands/DeleteRestApiCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteRestApiCommand.ts
@@ -28,6 +28,7 @@ export class DeleteRestApiCommand extends $Command<
DeleteRestApiCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteRestApiCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteStageCommand.ts b/clients/client-api-gateway/commands/DeleteStageCommand.ts
index de9788eaaa946..2c34e421154cd 100644
--- a/clients/client-api-gateway/commands/DeleteStageCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteStageCommand.ts
@@ -28,6 +28,7 @@ export class DeleteStageCommand extends $Command<
DeleteStageCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteStageCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteUsagePlanCommand.ts b/clients/client-api-gateway/commands/DeleteUsagePlanCommand.ts
index a2d9c2336bae0..7a9bf424771bd 100644
--- a/clients/client-api-gateway/commands/DeleteUsagePlanCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteUsagePlanCommand.ts
@@ -28,6 +28,7 @@ export class DeleteUsagePlanCommand extends $Command<
DeleteUsagePlanCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteUsagePlanCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteUsagePlanKeyCommand.ts b/clients/client-api-gateway/commands/DeleteUsagePlanKeyCommand.ts
index 80c7abcb3d76d..6daee3ed42099 100644
--- a/clients/client-api-gateway/commands/DeleteUsagePlanKeyCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteUsagePlanKeyCommand.ts
@@ -28,6 +28,7 @@ export class DeleteUsagePlanKeyCommand extends $Command<
DeleteUsagePlanKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteUsagePlanKeyCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/DeleteVpcLinkCommand.ts b/clients/client-api-gateway/commands/DeleteVpcLinkCommand.ts
index 9de4b235cd234..96218d201ad11 100644
--- a/clients/client-api-gateway/commands/DeleteVpcLinkCommand.ts
+++ b/clients/client-api-gateway/commands/DeleteVpcLinkCommand.ts
@@ -28,6 +28,7 @@ export class DeleteVpcLinkCommand extends $Command<
DeleteVpcLinkCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class DeleteVpcLinkCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/FlushStageAuthorizersCacheCommand.ts b/clients/client-api-gateway/commands/FlushStageAuthorizersCacheCommand.ts
index 8553898d74f8a..0a9e845ed04d5 100644
--- a/clients/client-api-gateway/commands/FlushStageAuthorizersCacheCommand.ts
+++ b/clients/client-api-gateway/commands/FlushStageAuthorizersCacheCommand.ts
@@ -28,6 +28,7 @@ export class FlushStageAuthorizersCacheCommand extends $Command<
FlushStageAuthorizersCacheCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class FlushStageAuthorizersCacheCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/FlushStageCacheCommand.ts b/clients/client-api-gateway/commands/FlushStageCacheCommand.ts
index 93206e621da4f..2d155c1f367b9 100644
--- a/clients/client-api-gateway/commands/FlushStageCacheCommand.ts
+++ b/clients/client-api-gateway/commands/FlushStageCacheCommand.ts
@@ -28,6 +28,7 @@ export class FlushStageCacheCommand extends $Command<
FlushStageCacheCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class FlushStageCacheCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GenerateClientCertificateCommand.ts b/clients/client-api-gateway/commands/GenerateClientCertificateCommand.ts
index acc5a0c0854e7..c4fac3e1f7c85 100644
--- a/clients/client-api-gateway/commands/GenerateClientCertificateCommand.ts
+++ b/clients/client-api-gateway/commands/GenerateClientCertificateCommand.ts
@@ -28,6 +28,7 @@ export class GenerateClientCertificateCommand extends $Command<
GenerateClientCertificateCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GenerateClientCertificateCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetAccountCommand.ts b/clients/client-api-gateway/commands/GetAccountCommand.ts
index 30ca8e36a66f0..7b7646a1c6c8a 100644
--- a/clients/client-api-gateway/commands/GetAccountCommand.ts
+++ b/clients/client-api-gateway/commands/GetAccountCommand.ts
@@ -28,6 +28,7 @@ export class GetAccountCommand extends $Command<
GetAccountCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetAccountCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetApiKeyCommand.ts b/clients/client-api-gateway/commands/GetApiKeyCommand.ts
index 0ea49e19b276e..22239f1a5944b 100644
--- a/clients/client-api-gateway/commands/GetApiKeyCommand.ts
+++ b/clients/client-api-gateway/commands/GetApiKeyCommand.ts
@@ -28,6 +28,7 @@ export class GetApiKeyCommand extends $Command<
GetApiKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetApiKeyCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetApiKeysCommand.ts b/clients/client-api-gateway/commands/GetApiKeysCommand.ts
index 05b95f7e057b4..101961255f759 100644
--- a/clients/client-api-gateway/commands/GetApiKeysCommand.ts
+++ b/clients/client-api-gateway/commands/GetApiKeysCommand.ts
@@ -28,6 +28,7 @@ export class GetApiKeysCommand extends $Command<
GetApiKeysCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetApiKeysCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetAuthorizerCommand.ts b/clients/client-api-gateway/commands/GetAuthorizerCommand.ts
index 98a5be09b8ad0..479da5aa6bbdf 100644
--- a/clients/client-api-gateway/commands/GetAuthorizerCommand.ts
+++ b/clients/client-api-gateway/commands/GetAuthorizerCommand.ts
@@ -29,6 +29,7 @@ export class GetAuthorizerCommand extends $Command<
GetAuthorizerCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class GetAuthorizerCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetAuthorizersCommand.ts b/clients/client-api-gateway/commands/GetAuthorizersCommand.ts
index b345720be0cc7..5ee2af6eb7487 100644
--- a/clients/client-api-gateway/commands/GetAuthorizersCommand.ts
+++ b/clients/client-api-gateway/commands/GetAuthorizersCommand.ts
@@ -29,6 +29,7 @@ export class GetAuthorizersCommand extends $Command<
GetAuthorizersCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -46,7 +47,10 @@ export class GetAuthorizersCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetBasePathMappingCommand.ts b/clients/client-api-gateway/commands/GetBasePathMappingCommand.ts
index 20204a1cb4cd8..e258ccb504d32 100644
--- a/clients/client-api-gateway/commands/GetBasePathMappingCommand.ts
+++ b/clients/client-api-gateway/commands/GetBasePathMappingCommand.ts
@@ -28,6 +28,7 @@ export class GetBasePathMappingCommand extends $Command<
GetBasePathMappingCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBasePathMappingCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetBasePathMappingsCommand.ts b/clients/client-api-gateway/commands/GetBasePathMappingsCommand.ts
index 2e7fc12cee719..5d0c2f20eb80a 100644
--- a/clients/client-api-gateway/commands/GetBasePathMappingsCommand.ts
+++ b/clients/client-api-gateway/commands/GetBasePathMappingsCommand.ts
@@ -28,6 +28,7 @@ export class GetBasePathMappingsCommand extends $Command<
GetBasePathMappingsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetBasePathMappingsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetClientCertificateCommand.ts b/clients/client-api-gateway/commands/GetClientCertificateCommand.ts
index 301e98e726a7a..f53789ff48bb2 100644
--- a/clients/client-api-gateway/commands/GetClientCertificateCommand.ts
+++ b/clients/client-api-gateway/commands/GetClientCertificateCommand.ts
@@ -28,6 +28,7 @@ export class GetClientCertificateCommand extends $Command<
GetClientCertificateCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetClientCertificateCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetClientCertificatesCommand.ts b/clients/client-api-gateway/commands/GetClientCertificatesCommand.ts
index 9dc389d6868aa..f5662dd71b730 100644
--- a/clients/client-api-gateway/commands/GetClientCertificatesCommand.ts
+++ b/clients/client-api-gateway/commands/GetClientCertificatesCommand.ts
@@ -28,6 +28,7 @@ export class GetClientCertificatesCommand extends $Command<
GetClientCertificatesCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetClientCertificatesCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDeploymentCommand.ts b/clients/client-api-gateway/commands/GetDeploymentCommand.ts
index 9ed35c4607903..7f47fbcc46e67 100644
--- a/clients/client-api-gateway/commands/GetDeploymentCommand.ts
+++ b/clients/client-api-gateway/commands/GetDeploymentCommand.ts
@@ -28,6 +28,7 @@ export class GetDeploymentCommand extends $Command<
GetDeploymentCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetDeploymentCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDeploymentsCommand.ts b/clients/client-api-gateway/commands/GetDeploymentsCommand.ts
index b2f18d63113cf..7180e1d82809f 100644
--- a/clients/client-api-gateway/commands/GetDeploymentsCommand.ts
+++ b/clients/client-api-gateway/commands/GetDeploymentsCommand.ts
@@ -28,6 +28,7 @@ export class GetDeploymentsCommand extends $Command<
GetDeploymentsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetDeploymentsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDocumentationPartCommand.ts b/clients/client-api-gateway/commands/GetDocumentationPartCommand.ts
index 24a3e0b0f9835..2f68d30247cc6 100644
--- a/clients/client-api-gateway/commands/GetDocumentationPartCommand.ts
+++ b/clients/client-api-gateway/commands/GetDocumentationPartCommand.ts
@@ -25,6 +25,7 @@ export class GetDocumentationPartCommand extends $Command<
GetDocumentationPartCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetDocumentationPartCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDocumentationPartsCommand.ts b/clients/client-api-gateway/commands/GetDocumentationPartsCommand.ts
index d38f9722be964..37e19e77e02e3 100644
--- a/clients/client-api-gateway/commands/GetDocumentationPartsCommand.ts
+++ b/clients/client-api-gateway/commands/GetDocumentationPartsCommand.ts
@@ -25,6 +25,7 @@ export class GetDocumentationPartsCommand extends $Command<
GetDocumentationPartsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetDocumentationPartsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDocumentationVersionCommand.ts b/clients/client-api-gateway/commands/GetDocumentationVersionCommand.ts
index 5924b4feb4167..c21fd7ebb8c94 100644
--- a/clients/client-api-gateway/commands/GetDocumentationVersionCommand.ts
+++ b/clients/client-api-gateway/commands/GetDocumentationVersionCommand.ts
@@ -25,6 +25,7 @@ export class GetDocumentationVersionCommand extends $Command<
GetDocumentationVersionCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetDocumentationVersionCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDocumentationVersionsCommand.ts b/clients/client-api-gateway/commands/GetDocumentationVersionsCommand.ts
index 151915b4ac047..ee207f95a941e 100644
--- a/clients/client-api-gateway/commands/GetDocumentationVersionsCommand.ts
+++ b/clients/client-api-gateway/commands/GetDocumentationVersionsCommand.ts
@@ -25,6 +25,7 @@ export class GetDocumentationVersionsCommand extends $Command<
GetDocumentationVersionsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetDocumentationVersionsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDomainNameCommand.ts b/clients/client-api-gateway/commands/GetDomainNameCommand.ts
index ffed84646ea3f..37131d7b3aa7b 100644
--- a/clients/client-api-gateway/commands/GetDomainNameCommand.ts
+++ b/clients/client-api-gateway/commands/GetDomainNameCommand.ts
@@ -28,6 +28,7 @@ export class GetDomainNameCommand extends $Command<
GetDomainNameCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetDomainNameCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetDomainNamesCommand.ts b/clients/client-api-gateway/commands/GetDomainNamesCommand.ts
index 35da003283e35..b48ecf81c995f 100644
--- a/clients/client-api-gateway/commands/GetDomainNamesCommand.ts
+++ b/clients/client-api-gateway/commands/GetDomainNamesCommand.ts
@@ -28,6 +28,7 @@ export class GetDomainNamesCommand extends $Command<
GetDomainNamesCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetDomainNamesCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetExportCommand.ts b/clients/client-api-gateway/commands/GetExportCommand.ts
index 2e0f88cc16aca..966d641d131fd 100644
--- a/clients/client-api-gateway/commands/GetExportCommand.ts
+++ b/clients/client-api-gateway/commands/GetExportCommand.ts
@@ -28,6 +28,7 @@ export class GetExportCommand extends $Command<
GetExportCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetExportCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetGatewayResponseCommand.ts b/clients/client-api-gateway/commands/GetGatewayResponseCommand.ts
index 39c4c4f34686a..52249bac457a1 100644
--- a/clients/client-api-gateway/commands/GetGatewayResponseCommand.ts
+++ b/clients/client-api-gateway/commands/GetGatewayResponseCommand.ts
@@ -28,6 +28,7 @@ export class GetGatewayResponseCommand extends $Command<
GetGatewayResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetGatewayResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetGatewayResponsesCommand.ts b/clients/client-api-gateway/commands/GetGatewayResponsesCommand.ts
index 7f90ff4a66fa3..cc1961302d8dd 100644
--- a/clients/client-api-gateway/commands/GetGatewayResponsesCommand.ts
+++ b/clients/client-api-gateway/commands/GetGatewayResponsesCommand.ts
@@ -28,6 +28,7 @@ export class GetGatewayResponsesCommand extends $Command<
GetGatewayResponsesCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetGatewayResponsesCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetIntegrationCommand.ts b/clients/client-api-gateway/commands/GetIntegrationCommand.ts
index 3dc35f0a001ae..e359cbf3e6e30 100644
--- a/clients/client-api-gateway/commands/GetIntegrationCommand.ts
+++ b/clients/client-api-gateway/commands/GetIntegrationCommand.ts
@@ -28,6 +28,7 @@ export class GetIntegrationCommand extends $Command<
GetIntegrationCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetIntegrationCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetIntegrationResponseCommand.ts b/clients/client-api-gateway/commands/GetIntegrationResponseCommand.ts
index 3a3c45b156526..0f1bff466a97f 100644
--- a/clients/client-api-gateway/commands/GetIntegrationResponseCommand.ts
+++ b/clients/client-api-gateway/commands/GetIntegrationResponseCommand.ts
@@ -28,6 +28,7 @@ export class GetIntegrationResponseCommand extends $Command<
GetIntegrationResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetIntegrationResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetMethodCommand.ts b/clients/client-api-gateway/commands/GetMethodCommand.ts
index d0d7d4acc6dbf..abe61a925f489 100644
--- a/clients/client-api-gateway/commands/GetMethodCommand.ts
+++ b/clients/client-api-gateway/commands/GetMethodCommand.ts
@@ -28,6 +28,7 @@ export class GetMethodCommand extends $Command<
GetMethodCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetMethodCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetMethodResponseCommand.ts b/clients/client-api-gateway/commands/GetMethodResponseCommand.ts
index f35a227ede505..57b99b6b5b817 100644
--- a/clients/client-api-gateway/commands/GetMethodResponseCommand.ts
+++ b/clients/client-api-gateway/commands/GetMethodResponseCommand.ts
@@ -28,6 +28,7 @@ export class GetMethodResponseCommand extends $Command<
GetMethodResponseCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetMethodResponseCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetModelCommand.ts b/clients/client-api-gateway/commands/GetModelCommand.ts
index c5172236846b0..b6393840d1182 100644
--- a/clients/client-api-gateway/commands/GetModelCommand.ts
+++ b/clients/client-api-gateway/commands/GetModelCommand.ts
@@ -28,6 +28,7 @@ export class GetModelCommand extends $Command<
GetModelCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetModelCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetModelTemplateCommand.ts b/clients/client-api-gateway/commands/GetModelTemplateCommand.ts
index 1faa1baf966ab..47f0cd2c795f5 100644
--- a/clients/client-api-gateway/commands/GetModelTemplateCommand.ts
+++ b/clients/client-api-gateway/commands/GetModelTemplateCommand.ts
@@ -28,6 +28,7 @@ export class GetModelTemplateCommand extends $Command<
GetModelTemplateCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetModelTemplateCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetModelsCommand.ts b/clients/client-api-gateway/commands/GetModelsCommand.ts
index af1c4e5d4cad5..4fe9b0c8dddb7 100644
--- a/clients/client-api-gateway/commands/GetModelsCommand.ts
+++ b/clients/client-api-gateway/commands/GetModelsCommand.ts
@@ -28,6 +28,7 @@ export class GetModelsCommand extends $Command<
GetModelsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetModelsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetRequestValidatorCommand.ts b/clients/client-api-gateway/commands/GetRequestValidatorCommand.ts
index ebd9221be7a96..895afcc06e745 100644
--- a/clients/client-api-gateway/commands/GetRequestValidatorCommand.ts
+++ b/clients/client-api-gateway/commands/GetRequestValidatorCommand.ts
@@ -28,6 +28,7 @@ export class GetRequestValidatorCommand extends $Command<
GetRequestValidatorCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetRequestValidatorCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetRequestValidatorsCommand.ts b/clients/client-api-gateway/commands/GetRequestValidatorsCommand.ts
index 414244af05b40..73fa685387f31 100644
--- a/clients/client-api-gateway/commands/GetRequestValidatorsCommand.ts
+++ b/clients/client-api-gateway/commands/GetRequestValidatorsCommand.ts
@@ -28,6 +28,7 @@ export class GetRequestValidatorsCommand extends $Command<
GetRequestValidatorsCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetRequestValidatorsCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetResourceCommand.ts b/clients/client-api-gateway/commands/GetResourceCommand.ts
index 81e114ddf20a7..2ecc963ff6000 100644
--- a/clients/client-api-gateway/commands/GetResourceCommand.ts
+++ b/clients/client-api-gateway/commands/GetResourceCommand.ts
@@ -28,6 +28,7 @@ export class GetResourceCommand extends $Command<
GetResourceCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetResourceCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetResourcesCommand.ts b/clients/client-api-gateway/commands/GetResourcesCommand.ts
index 07aeb3cd8d22e..1e06ee479857f 100644
--- a/clients/client-api-gateway/commands/GetResourcesCommand.ts
+++ b/clients/client-api-gateway/commands/GetResourcesCommand.ts
@@ -28,6 +28,7 @@ export class GetResourcesCommand extends $Command<
GetResourcesCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetResourcesCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetRestApiCommand.ts b/clients/client-api-gateway/commands/GetRestApiCommand.ts
index 51d4957dbb72f..3423bfc906d70 100644
--- a/clients/client-api-gateway/commands/GetRestApiCommand.ts
+++ b/clients/client-api-gateway/commands/GetRestApiCommand.ts
@@ -28,6 +28,7 @@ export class GetRestApiCommand extends $Command<
GetRestApiCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetRestApiCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetRestApisCommand.ts b/clients/client-api-gateway/commands/GetRestApisCommand.ts
index 6f694ba942a3c..c77714ceeeaaa 100644
--- a/clients/client-api-gateway/commands/GetRestApisCommand.ts
+++ b/clients/client-api-gateway/commands/GetRestApisCommand.ts
@@ -28,6 +28,7 @@ export class GetRestApisCommand extends $Command<
GetRestApisCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -45,7 +46,10 @@ export class GetRestApisCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetSdkCommand.ts b/clients/client-api-gateway/commands/GetSdkCommand.ts
index ff4aba94fdc1d..01e7b658cdf30 100644
--- a/clients/client-api-gateway/commands/GetSdkCommand.ts
+++ b/clients/client-api-gateway/commands/GetSdkCommand.ts
@@ -21,6 +21,7 @@ export type GetSdkCommandOutput = SdkResponse & __MetadataBearer;
* Generates a client SDK for a RestApi and Stage.
*/
export class GetSdkCommand extends $Command {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -38,7 +39,10 @@ export class GetSdkCommand extends $Command {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetSdkTypeCommand.ts b/clients/client-api-gateway/commands/GetSdkTypeCommand.ts
index 3950283a847ec..7711c34c6e0ad 100644
--- a/clients/client-api-gateway/commands/GetSdkTypeCommand.ts
+++ b/clients/client-api-gateway/commands/GetSdkTypeCommand.ts
@@ -25,6 +25,7 @@ export class GetSdkTypeCommand extends $Command<
GetSdkTypeCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetSdkTypeCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler {
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ if (!this.resolved) {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.resolved = true;
+ }
const stack = clientStack.concat(this.middlewareStack);
diff --git a/clients/client-api-gateway/commands/GetSdkTypesCommand.ts b/clients/client-api-gateway/commands/GetSdkTypesCommand.ts
index 3090379cd58c8..99f93f3906eaa 100644
--- a/clients/client-api-gateway/commands/GetSdkTypesCommand.ts
+++ b/clients/client-api-gateway/commands/GetSdkTypesCommand.ts
@@ -25,6 +25,7 @@ export class GetSdkTypesCommand extends $Command<
GetSdkTypesCommandOutput,
APIGatewayClientResolvedConfig
> {
+ private resolved = false;
// Start section: command_properties
// End section: command_properties
@@ -42,7 +43,10 @@ export class GetSdkTypesCommand extends $Command<
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler